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

--output

Path to where the dataset will be generated.

pathlib.Path

--dataset-id

ID of the dataset to extract from Arkindex.

uuid

--set

Extract a single dataset set. By default all supported sets from the dataset are extracted.

str

--element-type

Type (slug) of parent element to extract.

str

--worker-run

Source of the classifications. Use manual for manual classifications. Multiple worker runs can be given (ex: <wk_run1> <wk_run2> manual...).

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