| | |
| | | rgb[1] = green; |
| | | rgb[2] = blue; |
| | | box b = dets[i].bbox; |
| | | b.w = (b.w < 1) ? b.w : 1; |
| | | b.h = (b.h < 1) ? b.h : 1; |
| | | b.x = (b.x < 1) ? b.x : 1; |
| | | b.y = (b.y < 1) ? b.y : 1; |
| | | //printf("%f %f %f %f\n", b.x, b.y, b.w, b.h); |
| | | |
| | | int left = (b.x - b.w / 2.)*show_img->width; |
| | |
| | | (float)left, (float)top, b.w*show_img->width, b.h*show_img->height); |
| | | else |
| | | printf("\n"); |
| | | |
| | | cvRectangle(show_img, pt_text_bg1, pt_text_bg2, color, width, 8, 0); |
| | | cvRectangle(show_img, pt_text_bg1, pt_text_bg2, color, CV_FILLED, 8, 0); // filled |
| | | CvScalar black_color; |