# Comparing two images and showing the difference in a new image?

I would like to compare two web pages images using computer vision techniques. Show what are non-unique portions comparing both images. Which part image1 not exist in image2 vice versa.

A simple and time efficent solution is the computation of the absoulte values of the difference image. This can be done as follows:

import cv2