Extract detection/segmentation/OBB data

Use the teklia-yolo extract object command to extract a dataset from an Arkindex export database (SQLite format) with the following parameters.

Parameter Description Type Default

task

Task for which the annotations are extracted.

detect or segment or obb

database

Path to the Arkindex SQLite export.

pathlib.Path

--dataset-name

Name of the dataset. Will be used to create folders.

pathlib.Path or str

--dataset-id

ID of the dataset to extract from Arkindex.

uuid

--element-type

Type (slug) of parent element to extract.

str

--worker-run

Source of the annotations to extract.

uuid

--class

Specify which elements should be extracted. Multiple classes can be given (ex: <class1> <class2> <class3> ...).

str

--image-format

Format under which images are saved.

.jpg or .png

.jpg

--image-size

Maximum size allowed for the image.

int

640

--contrast

Whether to convert image in gray and contrast it.

False