Ask Your Question

Revision history [back]

click to hide/show revision 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);

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);