Currently, I\'m trying to perform motion detection with OpenCV. With each new frame, I use this bellow function to do compare with the previouse frame:
de