tzutalin / ImageNet_Utils

:arrow_double_down: Utils to help download images by id, crop bounding box, label images, etc.
MIT License
632 stars 197 forks source link

Converting object annotation to XML format #12

Open pnambiar opened 7 years ago

pnambiar commented 7 years ago

I'm trying to fine-tune one of the object detection algorithms like R-CNN, Fast RCNN. I have the annotation file in the format (There is only one object per image):

file1.jpg x1 y1 x2 y2
file2.jpg x1 y1 x2 y2

(x1,y1 and x2,y2 are the top left and bottom right points)

I would now like to convert it to the format that is needed for these algorithm. How do I use this script to convert my annotation file to the xml format?