May-08-2022, 04:29 PM
(This post was last modified: May-08-2022, 04:29 PM by deanhystad.)
You should display the grayscale image you produce and the greyscale image that is produced by cv2. That might help you figure out why the thresholding isn't producing the result you want. I don't think using mean is correct. Red and Blue are perceived to be dark colors, and Green a bright color, but in your equation all contribute equally to the brightness of the pixel.