Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

This is normal. The color of the green squares is (BGR) 79,155,108, which is outside the lower_green - upper green range.

The green squares have a border with 86,160,116 color, the inRange segments this part.

Try to change your range to: lower_green = np.array([75, 150, 105]) and upper_green = np.array([90, 165, 120]).