Reputation: 161
I come to Darknet from Turi create which is a Yolo implementation. There was an easy way to visualize the ground truth bounding boxes. I did some changes to the coordinates and I would like to check on one image if the transformations are correct. Is there any easy way to to do it?
Upvotes: 0
Views: 3584
Reputation: 1
Try this tool out https://github.com/waittim/draw-YOLO-box.git
It helps visualizing the boxes in all your files.
A Drawback is it creates a new image file with bboxes for each image. This could take up a lot of space.
Upvotes: 0
Reputation: 198
You can visualize darknet annotation format with this: https://github.com/AlexeyAB/Yolo_mark
Upvotes: 1
Reputation: 2445
You can use the opencv function:
cv2.rectangle(img, pt1, pt2, color, thickness, lineType, shift)
For example, in case of a bounding box:
cv2.rectangle(img, (x, y), (x+w, y+h), (255, 255, 00), 2)
Upvotes: 2