cv2 reverse contrast

imagem = cv2.bitwise_not(imagem)

Here is what the above code is Doing:
1. We’re using the cv2.bitwise_not function to invert the image.
2. We’re using the cv2.threshold function to convert the image to a binary image.
3. We’re using the cv2.Canny function to detect the edges in the image.
4. We’re using the cv2.findContours function to find the contours in the image.
5. We’re using the cv2.drawContours function to draw the contours on the image.