How to draw a polygon shaped data annotation shape for image detection?

224 Views Asked by At

I am training some images using imageAI object detection. What i want to do is draw a polygon shaped data annotation around the objects in an image. Not a square box. Even though I ca draw the shape, the imageAI class doesn't consider polygon shapes. If some one can help me to find if is there is some model where polygon shapes are allowed in image training, that would be great.

1

There are 1 best solutions below

0
On BEST ANSWER

ImageAI only supports PascalVOC image annotation format, which is upright rectangular bounding boxes. You would need to change frameworks for this to work. For a workaround, consider using an image editing tool to get rid of the background and then provide a square bounding box.