ai-annotate-rectangles automatically generate rectangle annotations from a text prompt:

tool_ai_annotate_rectangles.jpg

Usage

labelmetk ai-annotate-rectangles [OPTIONS] FILE_OR_DIR...

--texts:

Name objects to annotate such dog, animal, or even anything. You can specify multiple names separated by comma (e.g., --texts dog,cat).

--iou-threshold:

Threshold to remove overlapping annotations. The lower value means less annotations in the final result. The range is from 0 to 1. (Default: 0.5)

--score-threshold:

Threshold to remove annotations by score. The higher value means less annotations in the final result. The range is from 0 to 1. (Default: 0.1)

--max-annotations:

Max number of annotations. (Default: 100)

Example

Generate rectangles for a JPEG

labelmetk ai-annotate-rectangles dogs.jpg --texts dog

<aside> <img src="/icons/arrow-down-line_gray.svg" alt="/icons/arrow-down-line_gray.svg" width="40px" /> The example JSON file: dogs.jpg:

dogs.jpg

</aside>

Untitled

Untitled