I'm trying to process an incoming video stream, and only record frames when they differ by a specific threshold from the last recorded frame. I've found the jit.change object, but that only compares against the previous frame.
What I want to do is basically:
1) Get a frame
2) Compare it to the last recorded frame
3) If the difference exceeds a threshold, write the frame to the output
4) ... and make it the last recorded frame
I think this should be pretty easy, but I'm kind of running around in circles with it now.