/convert2Yolo

This project purpose is convert voc annotation xml file to yolo-darknet training file format

Primary LanguagePython

Convert2Yolo

Object Detection & Recognition DataSet annotation Convert Yolo Darknet

Pre-Requiredment

1. Make Directory

All convert code need some directory hierarchy

just make folder like this


[some your project root directory]
|
| - [JPEG] : For images folder
|
| - [label] : For annotaion folder
|
| - [results] : For results of convert2Yolo

2. Make Classe file

you should make class file

follow this format

reference voc.names file in repository

voc.names
aeroplane
bicycle
bird
boat
bottle
bus
car
cat
chair
cow
diningtable
dog
horse
motorbike
person
pottedplant
sheep
sofa
train
tvmonitor

3. Install requirement package

pip3 install -r pip_install_required.txt

VOC Pascal Format

Here is VOC Pascal DataSet example

voc image voc xml

1. example Code

python voc.py test.names example/voc/JPEG/ example/voc/label/ example/voc/results/

TODO

  • Support VOC Pascal Format
  • Support Udacity Format
  • Write how to using VOC Pascal Format in ReadMe
  • Write how to using Udacity Format in ReadMe
  • Code Refactoring