Surveillance RecordingSecurity concerns mandate continuous monitoring of important locations using video cameras. To efficiently record, review, and archive this massive amount of data, you can either reduce the video frame size or reduce the total number of video frames you record. This demo uses the Video and Image Processing Blockset to demonstrate the latter approach. In it, motion in the camera's field of view triggers the capture of "interesting" video frames. ContentsDemo ModelThe following figure shows the Surveillance Recording model:
Motion Energy SubsystemThe demo uses the 2-D SAD block to detect motion in the video sequence. When the sum of absolute differences (SAD) value of a particular frame exceeds a threshold, the demo records this video frame and displays it in the Motion Frames window.
Surveillance Recording ResultsThe Motion frames window shows the last recorded video frame. In this window, the Source frame value steadily increases as the video runs and the Captured frame value indicates the total number of frames recorded by the model. The Original frames window shows a frame of the original video. The Motion Threshold window displays the threshold value in magenta, and plots the SAD values for each frame in yellow. Any time the SAD value exceeds the threshold, the model records the video frame. About this videoThe above video was created using the Write AVI File block. When running this Simulink model, you can see the resulting video using a Video Viewer or To Video Display block. You can connect these viewers to any signal in the model, adjust model parameters, and view the results in real time. Additional InformationFor more information about the Video and Image Processing Blockset, see the Video and Image Processing Blockset product information page. From here you can download a free 30-day trial, read the documentation and user stories, request more information, and get pricing information. Also, see the other product demos that illustrate key features of the Video and Image Processing Blockset. |