I want to load a color image, convert it to grayscale, and then invert the data in the file.
What I need: to iterate over the array in OpenCV and change every singl
Alternatively, you could invert the image using the bitwise_not function of OpenCV:
bitwise_not
imagem = cv2.bitwise_not(imagem)
I liked this example.