I want to pick the color range from pink to yellow to put the range in inRange() function. However I can only pick from pink to red and red to yellow separately.
For pink to red the H value is from 125 to 255, then red to yellow is 0 to 10.
What is the value for the range i should put in?
Update #1
The way to use in range is
Core.inRange(mRgba, new Scalar(0, 100, 30), new Scalar(10, 255, 255), yellowMat); Core.inRange(mRgba, new Scalar(125, 100, 30), new Scalar(255, 255, 255), pinkMat);
Scalar doesn't accept value that's greater than 255.