Convert LabelMe JSON format to YOLO text file format
This tool helps you:
- Convert from LabelMe json annotation file to Yolo text file format for training darknet.
- Visualize the bounding box from Yolo text file (txt) to image.
The json format:
The txt format:
python3 json-to-txt.py --list_dataset_file [file txt contains dataset paths] --name_file_path [file obj.names] --move_json [move json file to backup folder]
Example:
python3 json-to-txt.py --list_dataset_file ./list_path.txt --name_file_path ./obj.names --move_json True
python3 visualize_txt_to_bbox.py --data_folder [folder contain txt and jpg] --output_folder [visualize folder]
Example:
python3 visualize_txt_to_bbox.py --data_folder ./data_yolo --output_folder ./visualize