MJPEG Surveillance. Nice free security webcam program comes with motion sensing technology which starts the recording when it senses movement in any particular area of the room. It can handle multiple cameras and can convert the JPEG file stream into a proper WMV, DivX or MPEG4 video clip. Lots of other features too, including video editing and auto video recycling which records over the oldest videos first (useful for keeping hard disk space under control).
My best motion detection algorithm so far, very accurate and very fast. Each frame is split into a 400 block grid, and an average luminance intensity value is calculated for each grid block, the program then compares the previous frame’s values with the current frame’s value, and the entire area which motion has occurred gets highlighted with a red rectangle, which can alter its size and shape to encapsulate the entire motion area. All motion detection and highlighting are done directly in raw memory, with custom direct memory access routines, so speed is drastically increased when compared to typical detection coding methods. This motion detection algorithm is more than 4 times faster, and twice as accurate with detection and image noise canceling than my previous version.