- added printing detected bounding box corners;

This commit is contained in:
Juan Altmayer Pizzorno 2020-04-15 14:34:29 -04:00
parent 8fa0c20d80
commit 66bc34d506

View File

@ -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;