write_coco

Function write_coco 

Source
pub fn write_coco<T, A>(
    meta_data: &MetaData,
    tools_data: T,
    rotation_data: Option<&Rot90ToolData>,
    coco_file: &ExportPath,
    double_check_shape: bool,
) -> RvResult<(PathBuf, JoinHandle<RvResult<()>>)>
where T: ExportAsCoco<A> + Send + 'static, A: InstanceAnnotate + 'static,
Expand description

Serialize annotations in Coco format. Any orientations changes applied with the rotation tool are reverted, since the rotation tool does not change the image file. Hence, the Coco file contains the annotation relative to the image as it is found in memory ignoring any meta-data.

ยงErrors

  • outpath name cannot be created due to weird characters or the like
  • serde write-to-json fails