<< Chapter < Page Chapter >> Page >
Video Surveillance Block Diagram

Simulation

  1. Open a new Simulink model
  2. Add the blocks shown in the following table (Please refer also to Figure 3):
Video surveillance simulink blocks
Functionality Block Blockset Quant.
SAD Subsystem Simulink / Ports&Subsystems 1
Delay Signal Processing Blockset / Signal Operations 1
Abs Simulink / Math Operations 1
Matrix Sum Signal Processing Blockset / Math Functions / Matrices and Linear Algebra / Matrix Operations 2
Data Type Conversion Simulink / Signal Attributes 1
Add Sum, Simulink / Math Operations 1
Recording Enabled Subsystem Simulink / Ports&Subsystems 1
Add Sum, Simulink / Math Operations 1
Delay Signal Processing Blockset / Signal Operations 1
counter Subsystem Simulink / Ports&Subsystems 1
Add Sum, Simulink / Math Operations 1
Delay Signal Processing Blockset / Signal Operations 1
Generate data for motion energy and threshold display Matrix Concatenate Simulink / Math Operations 2
Compare Motion Energy against Threshold Relational Operator Simulink / Logic and Bit Operations 1
Input Video From Multimedia File Signal Processing Blockset / Signal Processing Sources 1
Display Control Constant Signal Processing Blockset / Signal Processing Sources 1
Display Motion Energy and Threshold Floating Scope Simulink/Sinks 1
Draws formatted text on an image or video stream Insert Text Video and Image Processing Blockset / Text&figure__ 1
Connected to the trigger (not used for simulation) Terminator Simulink/Sinks 1
Images’ Display To Video Display Video and Image Processing Blockset / Sinks 2
Simulink Blocks for Video Surveillance

Configuring the sad blocks

  1. Configure one of the “Add” block for subtraction, you may also change its icon shape to a circular form as follows The symbol “|” is used to place the “+” and “-“ perpendicular to each other :
  2. Configure its fixed point mode of operation Configure one of the “Matrix Sum” blocks for adding rows:
  3. Configure its fixed point mode of operation
  4. Configure the fixed point mode of operation for the second Matrix “Column Add” block:

Configuring the input blocks

  1. Configure on of the “Video Source” "From Multimedia File" block for reading frames from the "vipmen.avi" file.
  2. Set the initial value of the "Constant" to 1e5.
  3. Configure "Data Type Conversion" block :
  4. Configure " Relational Operator " block :
  5. Configure one of the " Matrix Concatenate " block :
  6. The “Floating Scope” will be used to display the motion energy and the threshold The threshold is changed upon a user command. The simultaneous display of the threshold and motion energy will enable the user to follow-up the process of recording frames. as a function of time. Double-Click the block. A cope screen will appear, you should then click the icon as shown in the following picture:
    You may keep the default configuration for "Data history".
  7. Configure the " Insert Text " block :
  8. Double-click on the "Enabled Subsystem" block, and build it as shown below:
  9. Double-click on one of the "Subsystem" block and build it as shown below:
    Save the subsystem as: "Motion Energy"
  10. Double-click on one the remaining "Subsystem" block,build it as shown below and name it "Frame Counter":

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, From matlab and simulink to real-time with ti dsp's. OpenStax CNX. Jun 08, 2009 Download for free at http://cnx.org/content/col10713/1.1
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'From matlab and simulink to real-time with ti dsp's' conversation and receive update notifications?

Ask