<< 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":

Questions & Answers

what is mutation
Janga Reply
what is a cell
Sifune Reply
how is urine form
Sifune
what is antagonism?
mahase Reply
classification of plants, gymnosperm features.
Linsy Reply
what is the features of gymnosperm
Linsy
how many types of solid did we have
Samuel Reply
what is an ionic bond
Samuel
What is Atoms
Daprince Reply
what is fallopian tube
Merolyn
what is bladder
Merolyn
what's bulbourethral gland
Eduek Reply
urine is formed in the nephron of the renal medulla in the kidney. It starts from filtration, then selective reabsorption and finally secretion
onuoha Reply
State the evolution relation and relevance between endoplasmic reticulum and cytoskeleton as it relates to cell.
Jeremiah
what is heart
Konadu Reply
how is urine formed in human
Konadu
how is urine formed in human
Rahma
what is the diference between a cavity and a canal
Pelagie Reply
what is the causative agent of malaria
Diamond
malaria is caused by an insect called mosquito.
Naomi
Malaria is cause by female anopheles mosquito
Isaac
Malaria is caused by plasmodium Female anopheles mosquitoe is d carrier
Olalekan
a canal is more needed in a root but a cavity is a bad effect
Commander
what are pathogens
Don Reply
In biology, a pathogen (Greek: πάθος pathos "suffering", "passion" and -γενής -genēs "producer of") in the oldest and broadest sense, is anything that can produce disease. A pathogen may also be referred to as an infectious agent, or simply a germ. The term pathogen came into use in the 1880s.[1][2
Zainab
A virus
Commander
Definition of respiration
Muhsin Reply
respiration is the process in which we breath in oxygen and breath out carbon dioxide
Achor
how are lungs work
Commander
where does digestion begins
Achiri Reply
in the mouth
EZEKIEL
what are the functions of follicle stimulating harmones?
Rashima Reply
stimulates the follicle to release the mature ovum into the oviduct
Davonte
what are the functions of Endocrine and pituitary gland
Chinaza
endocrine secrete hormone and regulate body process
Achor
while pituitary gland is an example of endocrine system and it's found in the Brain
Achor
what's biology?
Egbodo Reply
Biology is the study of living organisms, divided into many specialized field that cover their morphology, physiology,anatomy, behaviour,origin and distribution.
Lisah
biology is the study of life.
Alfreda
Biology is the study of how living organisms live and survive in a specific environment
Sifune
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

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