2017-06-14 979 views

回答

2

一个快速的解决办法是修改文件image.c打印出来的边框信息:

... 
if(bot > im.h-1) bot = im.h-1; 

// Print bounding box values 
printf("Bounding Box: Left=%d, Top=%d, Right=%d, Bottom=%d\n", left, top, right, bot); 
draw_box_width(im, left, top, right, bot, width, red, green, blue); 
...