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

groot-1313 picture groot-1313  Â·  4Comments

MaverickLoneshark picture MaverickLoneshark  Â·  3Comments

TheHidden1 picture TheHidden1  Â·  3Comments

sujithm picture sujithm  Â·  3Comments

job2003 picture job2003  Â·  3Comments