Matten95 / Object-Detection-based-on-Auair-Dataset

0 stars 2 forks source link

AUAIR JSON to YOLO Conversion #2

Open souvik0306 opened 2 years ago

souvik0306 commented 2 years ago

I wish to use the AU-AIR Dataset for Object Detection using YOLOv5 however I'm unable to find any script which converts the JSON annotations to YOLO Format.

anbarasank2000 commented 2 years ago

untitled12 (1).zip I have creeated a python file to convert the JSON annotations to YOLO Format.

Note: Consider a bounding box parameter of an image from the JSON file: 'bbox': [{'class': 1, 'height': 185, 'left': 1098, 'top': 163, 'width': 420},

I have considered bounding box parameters: left as center_x top as center_y height as bbox_h width as bbox_w Correct the code, if these are wrong.

souvik0306 commented 2 years ago

Hi, I'm creating a new Pull Request which can convert the entire AU-AIR Annotation JSON File to YOLO Format. This will make the whole process very efficient

Please feel free to review the PR script