ai-rectangle-to-mask automatically generate a mask annotation from a rectangle annotation:

tool_ai_rectangle_to_mask.png

Usage

labelmetk ai-rectangle-to-mask [OPTIONS] FILE_OR_DIR...

--keep-original-bounding-box:

Retain the original bounding box as the rectangle's coordinates, rather than creating a tight bounding box for the generated mask by AI. Default is false.

Example

Generate mask for a JSON

labelmetk ai-rectangle-to-mask dogs_rectangle.json

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

dogs_rectangle.json

</aside>

Untitled

Untitled