Darknet: Get object bounding box coordinates?

Created on 18 Jun 2018  Â·  3Comments  Â·  Source: pjreddie/darknet

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).

Most helpful comment

This works fine with a little syntax correction:
printf("%d, %d, %d, %d\n", left, bot, right, top);

All 3 comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  Â·  4Comments

kthordarson picture kthordarson  Â·  3Comments

AndyZX picture AndyZX  Â·  3Comments

spaul13 picture spaul13  Â·  3Comments

HoracceFeng picture HoracceFeng  Â·  3Comments