anatools.annotations.convert_coco module¶
- convert_coco(datadir, outdir, mapping=None)¶
Optimized COCO conversion with pre-indexing and optional parallel processing
- create_cocodata()¶
- get_image_dimensions(imgpath)¶
Cache image dimensions to avoid repeated file opens
- index_metadata_by_filename(metadir)¶
Pre-index all metadata files by their filename field for O(1) lookup
- process_annotation_file(ann_file_path, metadata_index, imgdir, mapping=None)¶
Process a single annotation file and return the annotations and image data