Extract classification data

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

Parameter Description Type Default

database

Path to an Arkindex export database in SQLite format.

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

--image-size

Maximum size allowed for the image.

int

640

--contrast

Whether to convert image in gray and contrast it.

False

--element-type

Type (slug) of element to extract. Only one type at a time can be extracted.

str

--worker-run

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

list[uuid]

--class

Specify which classifications should be extracted. Multiple classes can be given (ex: <class1> <class2> <class3> ...). Extracts all by default.

str

--image-format

Format under which images are saved.

.jpg or .png

.jpg

Be careful, the elements of the types you want must be directly in the dataset, not just children of elements of the dataset.