I'm just getting started with OpenCV and I want to compare two similar images. I am trying to get a percentage back indicating the similarity. I am using sobel to filter out vertical and horizontal lines and then i want to compare just my horizontal lines in the image to see what is different. I am using python and opencv3.0.