yolo alternatives

This commit is contained in:
Francesco Gatti
2017-08-30 09:12:46 +00:00
parent 747fddab3f
commit a26ef98d2d
11 changed files with 1288 additions and 34 deletions
+2 -1
View File
@@ -324,7 +324,8 @@ void RegionInterpret::showImageResult(dnnType *input_h) {
for(int i=0; i<res_boxes_n; i++) {
box bx = res_boxes[i];
cv::rectangle(color, cv::Point(bx.x, bx.y), cv::Point(bx.w, bx.h),
cv::rectangle(color, cv::Point(bx.x - bx.w/2, bx.y - bx.h/2),
cv::Point(bx.x + bx.w/2, bx.y + bx.h/2),
cv::Scalar( 0, 0, 255), 2);
}
cv::namedWindow("result");