experiencor / keras-yolo3

Training and Detecting Objects with YOLO3
MIT License
1.6k stars 861 forks source link

Tool to draw BoundingBox #162

Open phamngocthanhtrung opened 5 years ago

phamngocthanhtrung commented 5 years ago

Hi, with which tool do you use to draw your boxes to get the right format? best regards

AzZzOne commented 5 years ago

Hi, phamngocthanhtrung!

You can use labelImg tool for that. Check this out: https://github.com/tzutalin/labelImg

phamngocthanhtrung commented 5 years ago

Hi, phamngocthanhtrung!

You can use labelImg tool for that. Check this out: https://github.com/tzutalin/labelImg

thank you, ich remember, that this tool generate an xml-file as annotation format, can i also use it ? i don't really know what's the right format for the annotations of this model best regards

AzZzOne commented 5 years ago

Yes, you can use it to create model.

This tool allow to create annotations in VOC and YOLO format. You need the first one.

paulbauriegel commented 5 years ago

https://github.com/Microsoft/VoTT

zhiyilearn commented 5 years ago

Hello I use labelimg to create bounding box the file looks like: 0 0.927600 0.282065 0.021600 0.035870 0 0.894800 0.274457 0.021600 0.027174

Double-check format is: classname, xmin, ymin, width, height (or inverse)

Is that correct? If I create YOLO format for Darknet, it shows:


Row format: image_file_path box1 box2 ... boxN; Box format: x_min,y_min,x_max,y_max,class_id (no space). For VOC dataset, try python voc_annotation.py Here is an example:

path/to/img1.jpg 50,100,150,200,0 30,50,200,120,3 path/to/img2.jpg 120,300,250,600,2


They are different, I think I should * height and width.