Beginning with Processing, for fun
Code | (0)
Processing. It is fun. The examples make you happy. Learning it is a well-documented process. And there are many sources for learning it.
Choose File/Examples/Libraries/Video Capture/ and pick an interesting starting point.
I liked the Frame Differencing sketch (yes, a "sketch" is what they call a minor program) by Golan Levin.
I took the liberty of fiddling further with Levin's work, and made the program into a "game". I wanted the program to complain about the user moving too much:
// just a number I grabbed (fiddle with this!)
int threshold = 4465911;
if (movementSum > threshold) {
// Use fill() to change ...