Tuesday, April 1, 2008

Doing Math

MMJ handles all video in or out as matrix data. This means the RGB pixel values can be directly accessed and used for analysis. MMJ can do some pretty complicated mathematics out of the box and more sophisticated mathematics with a little bit of coding.

For example a video feed can be analyzed as it comes in. With only a little bit of work (setting up a frame differencing operation) the computer can figure out when there is motion in the video feed. We can use this information to determine when to record and when not to record. This can be used to setup something I call motion active recording. Like a security system, we can get MMJ to record only the frames when there has been a certain threshold of movement accumulated.



Here is a video artifact of motion active recording. This was successful at creating a campus drive through with no stops. Any stops yielded no change in the incoming image and therefore those frames were not recorded. This recording also took advantage of MMJ's capacity to record from many cameras simultaneously.

No comments: