Matching image position before comparing image

asked 2017-10-15 23:44:57 -0600

jjabaram gravatar image

updated 2017-10-16 01:43:07 -0600

My goal is to make image 1 and image 2 in the same position before comparing and get the difference between images using python. Take this example:

image description

as you can see image 1 and image 2 is the same image, but image 2 is shifted and have another hole that image one didn't have. I want to compare this two images but first, I need to make image 1 and image 2 in the same position.

How would I go about finding the difference in the image?

Edit :

Real Image

image description

edit retag flag offensive close merge delete


try to use matchtemplate with a template heigth equal to image heigth but a template width equal to image width/4

LBerger gravatar imageLBerger ( 2017-10-16 02:01:08 -0600 )edit