Hello, I need to compare two consecutive frames from a webcam and if there is enough movement save the image to a file. I've studied the Farneback optical flow sample but I didn't understood so well how it works and how can I use the data to compare the images. I have to write the code in C. Thanks for any suggestion you can give me.