How can I quantify difference between two images?

Here’s what I would like to do: I’m taking pictures with a webcam at regular intervals. Sort of like a time lapse thing. However, if nothing has really changed, that is, the picture pretty much looks the same, I don’t want to store the latest snapshot. I imagine there’s some way of quantifying the difference, … Read more