1、在检测时内部函数image.c中的draw_detections_v3函数中矩形框坐标的(left,right,top,bot) 其中:(left,top)为左上角坐标,(right,bot)为矩形的宽和高。
-
/Rect(int a,int b,int c,int d)a,b为矩形的左上角坐标,c,d为矩形的长和宽
-
cv::rectangle(matImage,Rect(100,300,20,200),Scalar(0,0,255),1,1,0);
1、在检测时内部函数image.c中的draw_detections_v3函数中矩形框坐标的(left,right,top,bot) 其中:(left,top)为左上角坐标,(right,bot)为矩形的宽和高。
/Rect(int a,int b,int c,int d)a,b为矩形的左上角坐标,c,d为矩形的长和宽
cv::rectangle(matImage,Rect(100,300,20,200),Scalar(0,0,255),1,1,0);