1 | initial version |
Change this:
rectangle(image,(x,y),(x+w,y+h),(255,0,0),2);
to
rectangle(image,(x,y),(x+w,y+h),scalar(255,0,0),2);
2 | No.2 Revision |
Change this:
rectangle(image,(x,y),(x+w,y+h),(255,0,0),2);
to
rectangle(image,(x,y),(x+w,y+h),scalar(255,0,0),2);
rectangle(image,Point(x,y),Point(x+w,y+h),Scalar(255,0,0),2);