Answers for "python cv2 invert image"

1

negative cv2

imagem = cv2.bitwise_not(imagem)
Posted by: Guest on February-29-2020
0

opencv invert image

import cv2
image = cv2.imread("img.png")
image = ~image
cv2.imwrite("img_inv.png",image)
Posted by: Guest on August-20-2021

Python Answers by Framework

Browse Popular Code Answers by Language