Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python opencv subtract two images

# assuming the two images have the same shape
import cv2

image1 = cv2.imread("/path/to/image1")
image2 = cv2.imread("/path/to/image2")
image_diff = cv2.absdiff(image1, image2)
 
PREVIOUS NEXT
Tagged: #python #opencv #subtract #images
ADD COMMENT
Topic
Name
6+5 =