Skip to main content

Roboflow Python Library


roboflow logo

Website • Docs • Blog • Twitter • Linkedin • Universe

Roboflow makes managing, preprocessing, augmenting, and versioning datasets for computer vision seamless. This is the official Roboflow python package that interfaces with the Roboflow API. Key features of Roboflow:

Installation:

To install this package, please use Python 3.6 or higher. We provide three different ways to install the Roboflow package to use within your own projects.

Install from PyPi (Recommended):

pip install roboflow

Install from Source:

git clone https://github.com/roboflow-ai/roboflow-python.git
cd roboflow-python
python3 -m venv
source venv/bin/activate 
pip3 install -r requirements.txt

Quickstart

import roboflow

# Instantiate Roboflow object with your API key
rf = roboflow.Roboflow(api_key=YOUR_API_KEY_HERE)

# List all projects for your workspace
workspace = rf.workspace()

# Load a certain project, workspace url is optional
project = rf.project("PROJECT_ID")

# List all versions of a specific project
project.versions()

# Upload image to dataset
project.upload("UPLOAD_IMAGE.jpg")

# Retrieve the model of a specific project
project.version("1").model

# predict on a local image
prediction = model.predict("YOUR_IMAGE.jpg")

# Predict on a hosted image
prediction = model.predict("YOUR_IMAGE.jpg", hosted=True)

# Plot the prediction
prediction.plot()

# Convert predictions to JSON
prediction.json()

# Save the prediction as an image
prediction.save(output_path='predictions.jpg')

Metadata

Release files for roboflow 0.1.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for roboflow 0.1.9
File Size Uploaded Provenance Actions
roboflow-0.1.9.tar.gz 14.4 kB Without provenance Details for roboflow-0.1.9.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for roboflow 0.1.9
File Interpreter ABI Platform Actions
roboflow-0.1.9-py2-none-any.whl Python 2 none any Details for roboflow-0.1.9-py2-none-any.whl

Total release size: 38.5 kB

Release files / roboflow-0.1.9.tar.gz

Download URL roboflow-0.1.9.tar.gz
Size 14.4 kB
Tags Source
SHA-256 checksum
How to use checksums
4554659ae0f3472591fbe4544b0640f36492191e07487bc7d898bc25f9ab4374
BLAKE2b-256 checksum
How to use checksums
489258a910ab91493788d83dbf517fb81e0002346f78f52f5852d69260442c3a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.4

Release files / roboflow-0.1.9-py2-none-any.whl

Download URL roboflow-0.1.9-py2-none-any.whl
Size 24.1 kB
Tags Python 2
SHA-256 checksum
How to use checksums
c234d26dbff3be78476a443ad1f3d17ce20608c47cdd446a8e8547e439805c30
BLAKE2b-256 checksum
How to use checksums
b681034557cb670441b898b63a3d129336eb31bef94d51338a8af60833bc5128
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.4

Security for roboflow 0.1.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.9 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page