Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

If it's always Red you're looking for it's pretty easy. It's BGR, so split the channels, and take Result = R - 0.5B - 0.5G

That gives you something that looks like this: image description

Otherwise, convert to HSV, and choose your thresholds in the H channel around the color you're looking for.