coco_to_arrow

Function coco_to_arrow 

Source
pub async fn coco_to_arrow<P: AsRef<Path>>(
    coco_path: P,
    output_path: P,
    options: &CocoToArrowOptions,
    progress: Option<Sender<Progress>>,
) -> Result<usize, Error>
Expand description

Convert COCO annotations to EdgeFirst Arrow format.

This is a high-performance async conversion that uses parallel workers for parsing and transforming annotations.

§Arguments

  • coco_path - Path to COCO annotation JSON file or ZIP archive
  • output_path - Output Arrow file path
  • options - Conversion options
  • progress - Optional progress channel

§Returns

Number of samples converted