SDK Reference¶
Annotation¶
Working with labeling data of individual images. Annotation wraps all the labeling data for a given image: its Labels (geometrical objects) and Tags.
Annotation for a single image. |
|
JSON fields for |
|
Supervisely Label. |
|
JSON fields for |
|
Object class: name, geometry type (Rectangle, Polygon, etc.), color. |
|
Json fields for |
|
Collection with |
|
Tag attached to image or label; meta + value. |
|
Json fields for |
|
Collection with |
|
Tag metadata: name, value type (NONE, ANY_STRING, DATE, etc.), optional possible values. |
|
Json fields for |
|
Defines Tag applicability only to images, objects or both. |
|
Restricts Tag to have a certain value type. |
|
Collection with |
API¶
Python wrappers to script your interactions with the Supervisely web instance. Instead of clicking around, you can write a script to request, via the API, a sequence of tasks (e.g. training a neural network and then running inference on a validation dataset).
Main Supervisely API client (aggregates sub-APIs and handles auth, retries and common configuration). |
|
API for working with agents. |
|
API for working with image annotations. |
|
API for launching and managing Supervisely Apps (built on top of |
|
Used to customize the appearance and behavior of the workflow node. |
|
Used to customize the appearance of the workflow main and/or relation node. |
|
API for working with datasets. |
|
API for working with files in Team Files. |
|
API for working with Guides. |
|
API for working with files and folders in Team Files and Cloud Storage. |
|
Control the Supervisely Image Annotation Tool UI via API. |
|
Action to set the figure as the current figure (selected figure) in the annotation tool. |
|
API for working with images. |
|
NamedTuple with image information from Supervisely. |
|
Object with image parameters that describes image in blob file. |
|
Work with internal import storage in Supervisely. |
|
API for working with annotation issues and comments. |
|
API for working with labeling jobs. |
|
API for working with entities collections. |
|
API for working with labeling queues. |
|
Fields for API requests. |
|
Base class for entities that have a parent object in the system. |
|
Base class for all module APIs. |
|
API for cloning entities. |
|
API for updating entities. |
|
API for removing entities. |
|
API for removing multiple entities. |
|
API for getting and raising for status of an entity. |
|
API for working with ObjClass objects. |
|
API for working with plugins. |
|
API for working with projects. |
|
API for working with classes in a project. |
|
API for working with roles. |
|
API for working with tasks. |
|
List of Team Actions to sort Team Activity. |
|
API for working with teams. |
|
API for working with users. |
|
API for working with workspaces. |
Video API¶
API for working with videos in Supervisely.
API for working with videos. |
|
NamedTuple with video information from Supervisely. |
|
API for working with video annotations. |
|
API for working with |
|
API for working with |
|
API for working with video objects. |
|
API for working with |
Volume API¶
API for working with volumes in Supervisely.
API for working with volumes. |
|
NamedTuple with Volume information from Supervisely. |
|
API for working with volume annotations. |
|
API for working with |
|
API for working with |
|
API for working with |
Pointcloud API¶
API for working with pointclouds in Supervisely.
API for working with point clouds. |
|
NamedTuple with pointcloud information from Supervisely. |
|
API for working with point cloud episodes. |
|
API for working with PointcloudAnnotation. |
|
API for working with point cloud episode annotations. |
|
API for working with |
|
API for working with point cloud objects. |
|
API for working with |
Neural Networks API¶
APIs for training, deploying models, running inference, and working with model metadata in Supervisely.
API for deploying models and controlling serving apps. |
|
API to interact with neural networks in Supervisely. |
|
High-level API to start a training application on the Supervisely instance. |
|
Client for interacting with a deployed model (load settings/metadata, run inference). |
|
A single prediction result. |
|
Asynchronous inference session that yields |
Augmentation¶
Data augmentations to create more data variety for neural networks training.
Augmentations for images and annotations |
Collection¶
Key-indexed collections and helpers used across the SDK.
Raised when trying to add already existing key to |
|
Base class for objects that should implement the |
|
Base class for collections that can be indexed by a key. |
|
Collection that can be indexed by multiple keys. |
Decorators¶
Small utility decorators (e.g. profiling helpers).
Profile decorators for Supervisely. |
Geometry¶
All the logic concerned with working with geometric objects - compute statistics like object area, transform (rotate, scale, shift), extract bounding boxes, compute intersections and more.
Placeholder geometry that accepts any shape type. |
|
Binary or grayscale 2D mask with origin; used for segmentation. |
|
Specifies possible skeletonization methods of |
|
Bitmap mask with per-pixel alpha; used for semi-transparent segmentation. |
|
Base class for bitmap-like geometries (Bitmap, AlphaMask, MultichannelBitmap); mask + origin. |
|
3D cuboid defined by eight corner points and six faces. |
|
A single face of a |
|
3D cuboid with position, rotation, and dimensions (Vector3d). |
|
A simple 3D vector (x, y, z) used by |
|
3D volumetric mask (voxel data). |
|
Base class for all geometry classes. |
|
2D point at (row, col). |
|
3D point (x, y, z) in volume or point cloud space. |
|
2D pixel coordinate (row, col); used for point positions and polygon vertices. |
|
Closed 2D polygon with exterior contour and optional interior holes. |
|
Open 2D polyline (sequence of connected line segments). |
|
Axis-aligned 2D bounding box (top, left, bottom, right). |
|
Rotates images and geometry figures around image center by a given angle. |
|
Base class for vector geometries (polygon, polyline) defined by exterior/interior contours. |
|
Single vertex in a keypoint graph: a labeled point (row, col) used as a building block for |
|
Geometry representing a graph of labeled keypoints: a collection of |
Imaging¶
Wrappers for working with images: IO, transformations, text rendering, color conversions.
Font utilities. |
|
Color utilities. |
|
Image I/O and basic image processing utilities. |
IO¶
Low-level convenience IO wrappers that are used across the SDK.
File system utilities for Supervisely. |
|
JSON utilities for Supervisely. |
Labeling Jobs¶
Helpers for working with labeling jobs and related utilities.
utilities used for labeling jobs |
Pointcloud¶
Core pointcloud-related helpers and utilities.
Functions for processing pointclouds |
Pointcloud Annotation¶
Data model for pointcloud annotations (figures, objects, tags, episodes).
Annotation for a single point cloud item in Supervisely format. |
|
Figure in point cloud annotation: 3D geometry (e.g. Cuboid3d) at a frame. |
|
Object in point cloud annotation (obj_class + tags). |
|
Collection with |
|
Tag on point cloud annotation (meta, value). |
|
Collection with |
|
Annotation for a point cloud episode (a sequence of frames) in Supervisely format. |
|
Single frame in point cloud episode; holds PointcloudFigures at given index. |
|
Collection with |
|
Tag on point cloud episode or frame range (meta, value, frame_range). |
|
Collection with |
Pointcloud Episodes¶
Helpers and data structures for pointcloud episodes.
Functions for processing pointcloud episodes |
Project¶
Working with Supervisely projects on disk.
A local Supervisely project directory that contains one or more datasets. |
|
Enumerates supported Supervisely project types (images, videos, volumes, point clouds, episodes). |
|
Project-level metadata: object classes, tag metas, project type and settings. |
|
JSON field names used in |
|
A dataset directory inside a local Supervisely project. |
|
Paths to an item's data file and its annotation file within a local Supervisely dataset. |
|
Basic information about a dataset item and where it is stored on disk. |
|
A local Supervisely project for video data. |
|
A dataset directory for video items inside a local Supervisely video project. |
|
Paths to a video's data file and its annotation file within a local Supervisely dataset. |
|
A local Supervisely project for point cloud data. |
|
A dataset directory for point cloud items inside a local Supervisely point cloud project. |
|
A local Supervisely project for 3D volume data. |
|
A dataset directory for 3D volume items inside a local Supervisely volume project. |
|
Object with parameters from Supervisely that describes the version of the project. |
|
Class for managing project versions. |
Task¶
Constants defining the directories where a plugin should expect the input and output data to be, plus helpers to stream progress data from a running plugin back to the web instance.
Progress reporter for long-running operations. |
Training¶
High-level wrappers and helpers for building training applications (GUI, data prep, artifacts upload, benchmarking).
High-level wrapper for building Supervisely training applications. |
User¶
User-related data structures and constants.
Enumerates supported Supervisely user roles (e.g. admin, manager, annotator). |
Video¶
Core video-related helpers and utilities.
Functions for processing videos |
Video Annotation¶
Data model for video annotations (frames, objects, figures, tags).
Annotation for a single video in Supervisely format. |
|
Single frame in a video annotation; holds figures at a given index. |
|
Collection of Frame instances indexed by frame index. |
|
Bidirectional mapping between UUID keys and integer IDs for video annotations. |
|
Figure in video annotation: geometry tied to a VideoObject at a frame index. |
|
Tracked object across video frames; obj_class plus optional tags. |
|
Collection of VideoObject instances indexed by key. |
|
Tag applied to video or frame range (meta, value, frame_range). |
|
Collection with |
Volume¶
Core volume-related helpers and utilities.
Functions for processing volumes |
Volume Annotation¶
Data model for volume annotations (objects, figures, tags, and slices).
Annotation for a 3D volume: objects, tags, planes, spatial figures. |
|
Figure in volume annotation: geometry (Mask3D/ClosedSurfaceMesh) at a slice or spatial position. |
|
Object in volume annotation: obj_class, optional Mask3D geometry, tags. |
|
Collection with |
|
Tag on a volume annotation (meta, value). |
|
Collection with |
|
Plane in volume (sagittal, coronal, axial); collection of Slices. |
|
Single slice in volume plane; holds VolumeFigures at given index. |
Utility Functions¶
A collection of useful utility functions for common tasks in the Supervisely SDK.
Download project in a fast mode. |