update_coco_annotations

Function update_coco_annotations 

Source
pub async fn update_coco_annotations(
    client: &Client,
    coco_path: impl AsRef<Path>,
    dataset_id: DatasetID,
    annotation_set_id: AnnotationSetID,
    options: &CocoUpdateOptions,
    progress: Option<Sender<Progress>>,
) -> Result<CocoUpdateResult, Error>
Expand description

Update annotations on existing samples without re-uploading images.

This function reads COCO annotations and updates the annotations on samples that already exist in Studio. It’s useful for:

  • Adding masks to samples that were imported without them
  • Syncing updated annotations to Studio

Note: This does NOT upload images. Samples must already exist in Studio.

§Arguments

  • client - Authenticated Studio client
  • coco_path - Path to COCO annotation JSON file
  • dataset_id - Target dataset in Studio
  • annotation_set_id - Target annotation set
  • options - Update options
  • progress - Optional progress channel

§Returns

Update result with counts of updated and not-found samples.