Mathematics, Fourier Transform, Image Processing, Numpy.
desktop. An optical mouse captures the red and yellow rectangular area with some noises at successive moments. Now it has to figure out how much movement has happened between the two moments. import cv2 import numpy as np img = cv2.imread('unnamed.jpg') width, height = 1000, 1000 x1, y1= 300, 300