Using OpenCV for Image Similarity

this results in a 3 channel image. use:

cv2.imread("Test\i1.png", cv2.IMREAD_GRAYSCALE)

instead for the required single channel input