roboflow / roboflow/supervision

DetectionDataset accumulator

Open
#246 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Python
Stars
50.9k
Forks
4.8k
Avg merge
1d 12h
Merged PRs (30d)
85

Description

Search before asking
  • I have searched the Supervision issues and found no similar feature requests.
Description

This feature is interested for semi-automatic annotations. User can use this feature to use their favourite pretrained model to generate detections and then with sv.DetectionDataset can magically store into favourite format.

import supervision as sv

ds = sv.DetectionDataset.empty(...)

image =  cv2.imread(`image-path`)
inference_output = model(img)  # can be anything i.e. SAM, Dino, transformers, yolo, etc
detections = sv.Detection.from_model(inference_output)

image_path = "1.jpg"
ds.add_detection(image_path=image_path, image=image, detections=detections)

ds.as_coco(output_image_directory, annotation_path)
Use case
  • Semi-automatic annotations
  • Annotations corrections
Additional

No response

Are you willing to submit a PR?
  • Yes I'd like to help by submitting a PR!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating DetectionDataset, Detection.from_model, and the existing dataset export APIs mentioned in the example; inspect how images, detections, and annotation formats are currently represented. The feature is complete when a dataset can accumulate model-generated detections and export them in the supported formats for semi-automatic annotation workflows.

Written by the indexing model from the issue text.

Assessment

Tech stack
opencv, python
Domain
computer-vision, data
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.