Hi,
I'm new to YOLO. Interesting tool. How can I get the bounding box of all objects? I would need to crop photo to that object. So for instance, for each object, it would be 4 values for the rectangle: (Xmin, Ymin), (Xmax,Ymax).
If you want get bounding box coordinates, you can just modified /src/image.c. In void draw_detections, before draw_box_width add printf(%d, %d, %d, %d\n", left, bot, right, top); .
This works fine with a little syntax correction:
printf("%d, %d, %d, %d\n", left, bot, right, top);
even though I remake the Darknet, it doesn't show the coords. I think Darknet doesn't remake my modified image.c file.
after a while this worked.
https://github.com/pjreddie/darknet/issues/183#issuecomment-328338938
Most helpful comment
This works fine with a little syntax correction:
printf("%d, %d, %d, %d\n", left, bot, right, top);