Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I am trying to detect red color using inRange keyword. But I cannot check it inside If statement. If red color comes then print It is red color

  1. Mat1b mask1, mask2;
  2. inRange(hsv, Scalar(173, 70, 50), Scalar(179, 255, 255), mask1);
  3. imshow("RedDetect", mask1);