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 clientcoco_path- Path to COCO annotation JSON filedataset_id- Target dataset in Studioannotation_set_id- Target annotation setoptions- Update optionsprogress- Optional progress channel
§Returns
Update result with counts of updated and not-found samples.