November 2018
Beginner
472 pages
13h 5m
English
We will use green because red is slightly tricky, as it requires two masks. The hues for red cross a boundary between 179 (the upper limit of our hue range) and 0 (the lower limit), so we would have to mask the image twice and then combine these with an or operation. The cv2.bitwise_or function can be used for this, if the reader wants to try that.