ai-rectangle-to-mask
automatically generate a mask annotation from a rectangle annotation:
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
.
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
:
</aside>