Roboflow Python Library

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:


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
cd roboflow-python
python3 -m venv
source venv/bin/activate 
pip3 install -r requirements.txt


import roboflow

# Instantiate Roboflow object with your API key
rf = 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

# Upload image to dataset

# Retrieve the model of a specific project

# 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

# Convert predictions to JSON

# Save the prediction as an image'predictions.jpg')
GitHub - roboflow-ai/roboflow-python: Interface with Roboflow in Python
Interface with Roboflow in Python. Contribute to roboflow-ai/roboflow-python development by creating an account on GitHub.