Skip to main content

Ergonomic machine learning

Project description

Roboflow Python Library


roboflow logo

WebsiteDocsBlogTwitterLinkedinUniverse

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 Conda:

conda 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(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')

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

roboflowtest-0.0.2.tar.gz (18.1 kB view details)

Uploaded Source

Built Distribution

roboflowtest-0.0.2-py3-none-any.whl (21.7 kB view details)

Uploaded Python 3

File details

Details for the file roboflowtest-0.0.2.tar.gz.

File metadata

  • Download URL: roboflowtest-0.0.2.tar.gz
  • Upload date:
  • Size: 18.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.5.0 pkginfo/1.5.0.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for roboflowtest-0.0.2.tar.gz
Algorithm Hash digest
SHA256 5fc716159d47e8f53aa7dcc034b502263cc3841135a24e1a3b44310cf1627019
MD5 a0cc117d916977787a00a1f67a77a116
BLAKE2b-256 4cfb0bd25ae3349ee165e258c95f0701df437d11abce9e2c5d17d2ce82e7f52b

See more details on using hashes here.

File details

Details for the file roboflowtest-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: roboflowtest-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 21.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.5.0 pkginfo/1.5.0.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for roboflowtest-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ffa6662fcb03f4af7c0cac84c00e9211f8b52739048f4ab892ec68e9a939c93a
MD5 b7a861009d82834e6f5ec54ed79c7e1f
BLAKE2b-256 065462cab530fbe0d600389305dc60c1348324dbe73a9265095ceaf53fe68b2c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page