mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
- added printing detected bounding box corners;
This commit is contained in:
parent
8fa0c20d80
commit
66bc34d506
@ -284,6 +284,7 @@ void draw_detections(image im, detection *dets, int num, float thresh, char **na
|
|||||||
int right = (b.x+b.w/2.)*im.w;
|
int right = (b.x+b.w/2.)*im.w;
|
||||||
int top = (b.y-b.h/2.)*im.h;
|
int top = (b.y-b.h/2.)*im.h;
|
||||||
int bot = (b.y+b.h/2.)*im.h;
|
int bot = (b.y+b.h/2.)*im.h;
|
||||||
|
printf("(%d,%d,%d,%d)\n", left, top, right, bot);
|
||||||
|
|
||||||
if(left < 0) left = 0;
|
if(left < 0) left = 0;
|
||||||
if(right > im.w-1) right = im.w-1;
|
if(right > im.w-1) right = im.w-1;
|
||||||
|
Loading…
Reference in New Issue
Block a user