Skip to main content

arrow_to_coco

Function arrow_to_coco 

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

Convert EdgeFirst Arrow format to COCO annotations.

Reads an Arrow file and produces COCO JSON output. LVIS extension fields are preserved when present in the Arrow file: neg_category_ids, not_exhaustive_category_ids, category frequency, annotation iscrowd, supercategory, and category metadata (synset, synonyms, def).

§Arguments

  • arrow_path - Path to EdgeFirst Arrow file
  • output_path - Output COCO JSON file path
  • options - Conversion options
  • progress - Optional progress channel

§Returns

Number of annotations converted