Compare frames from videos opencv python
I don't know why it doesn't work but to solve your problem I would suggest to implement a new function which returns true even if there is a small difference for each pixel color value.
Using the appropriate threshold, you should be able to exclude false negatives.
I've been trying to compare videos from frames taken from video using opencv videocapture() python! 
Took the first frame from a video let's call it frame1 and when I saved the video and took the same first  frame again let's call it frame2
Comparing frame 1 and frame 2 returns false. When I expected true.
I also saved the frame as an image in png(lossless format) and saved video and again same first frame. But they don't match? How to get the same frame everytime when dealing with videos opencv! Python