Create a Project

Workspace.create_project() creates a new project in the workspace and returns a Project object you can then upload images to.

import roboflow

rf = roboflow.Roboflow(api_key="YOUR_API_KEY")

project = rf.workspace().create_project(
    project_name="Flower detector",
    project_type="object-detection",
    project_license="MIT",
    annotation="flowers",
)
print(project.id)

Parameters

  • project_name (str) - the display name. The URL slug is auto-generated from this.

  • project_type (str) - one of:

    • object-detection

    • classification

    • instance-segmentation

    • semantic-segmentation

    • keypoint-detection

  • project_license (str) - set to "Private" for private projects (paid plans only). Public-license values include "MIT", "CC BY 4.0", "Public Domain", etc. - see the project creation form in the web app for the full list.

  • annotation (str) - the annotation group: a noun describing what's being labeled ("flowers", "vehicles", "defects"). Used in the labeling UI prompts.

REST and CLI equivalents

Last updated

Was this helpful?