converter module

class datumaro.plugins.cvat_format.converter.XmlAnnotationWriter(f)[source]

Bases: object

VERSION = '1.1'
__init__(f)[source]
open_root()[source]
write_meta(meta)[source]
open_track(track)[source]
open_image(image)[source]
open_box(box)[source]
open_polygon(polygon)[source]
open_polyline(polyline)[source]
open_points(points)[source]
open_tag(tag)[source]
add_attribute(attribute)[source]
close_box()[source]
close_polygon()[source]
close_polyline()[source]
close_points()[source]
close_tag()[source]
close_image()[source]
close_track()[source]
close_root()[source]
class datumaro.plugins.cvat_format.converter.CvatConverter(extractor, save_dir, reindex=False, allow_undeclared_attrs=False, **kwargs)[source]

Bases: datumaro.components.converter.Converter

DEFAULT_IMAGE_EXT = '.jpg'
classmethod build_cmdline_parser(**kwargs)[source]
__init__(extractor, save_dir, reindex=False, allow_undeclared_attrs=False, **kwargs)[source]
apply()[source]
classmethod patch(dataset, patch, save_dir, **kwargs)[source]