How do I calculate the percentage of difference between two images using Python and OpenCV?
You will need to calculate this on your own. You will need the count of diferent pixels and the size of your original image then a simple math: (diferentPixelsCount / (mainImage.width * mainImage.height))*100
I am trying to write a program in Python (with OpenCV) that compares 2 images, shows the difference between them, and then informs the user of the percentage of difference between the images.  I have already made it so it generates a .jpg showing the difference, but I can't figure out how to make it calculate a percentage.  Does anyone know how to do this?
Thanks in advance.