Function rvlib::write_coco

source ยท
pub fn write_coco<T, A>(
    meta_data: &MetaData,
    tools_data: T,
    rotation_data: Option<&Rot90ToolData>,
    coco_file: ExportPath,
) -> 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.