Python opencv subtrahieren zwei Bilder

# 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)
wolf-like_hunter