pip install virtualenv
virtualenv --version
cd yolo-marker
virtualenv .env -p python3 --no-site-packages
. .env/bin/activate
pip install -r requirements.txt
python3 marker.py -p "PATH_WITH_IMGS/*EXTENSION" -d WIDTH HEIGHT
Eg.: python3 marker.py -p "/Users/leandrobmarinho/img/*.png" -d 1920 1080
deactivate
python write_img_names.py -p "PATH_WITH_IMGS/*EXTENSION" -ptrain [0..1] [-v]
Eg1.: python write_img_names.py -p "/Users/leandrobmarinho/img/*.png" -ptrain .95 -v
Eg2.: python write_img_names.py -p "/Users/leandrobmarinho/img/*.png" -ptrain .95
write_img_names_2 - the images' path will be the absolute path, and if there is not marked images, they will not be counted to the train and test files
python write_img_names_2.py -p "PATH_WITH_IMGS/*EXTENSION" -ptrain [0..1] [-v]
Eg1.: python write_img_names_2.py -p "/Users/leandrobmarinho/img/*.png" -ptrain .95 -v\
This file is different from the markey.py file. The difference consists on the permission of changing a class after marking the bounding box. To change the class, you should place the mouse cursor inside the bounding box, then press the number representing the class. However, if you are marking the images, you should be attentive to change the class outside the of the existing bounding boxes. The marker_change_class.py file is useful, mainly, on the reviewing process.
All characters can be chosen as object classes, in addition to numbers. Image manipulations are now:
+ → next image
- → previous image
/ → reset the cropping region
* → exit