<< Chapter < Page Chapter >> Page >
This module describes general procedures for reading and writing video streams using the DM6437 Digital Video Development Platform (DVDP). The scripts and models created in this chapter will be the basis for simulation and implementation of video processing algorithms.

Introduction

This chapter describes general procedures for reading and writing video streamss. The scripts and models created in this chapter will be the basis for the other video processing chapters.

Hardware and software requirements

This laboratory was originally developed using the following hardware and software:

  • MATLAB® R2008a
  • Code Composer Studio (CCS) v3.3
  • Texas Instruments DM6437 Digital Video Development Platform (DVDP) .
  • Video camera and screen.

Simulation

Start by creating a new model in Simulink®.

  1. Open the Simulink library browser and add the "From Multimedia File" from the "Sources" group of the Video and Image Processing Blockset (Please refer to Figure 1).
    The "From Multimedia File" Simulink Block
  2. Double Click and select the “vipmem_Y.avi” input file(Please refer to Figure 2).
    Source Block Configuration
  3. In order to display the picture the "Video Viewer" from the "Sinks" group of the Video and Image Processing Blockset will be used.
    The "To Video Display" Block
    Configuring the Video Viewer
  4. Connect the three blocks as shown in Figure 5.
    Displaying a Video-Clip
  5. Run the model, you should see the video clip. A single frame is shown mage shown in Figure 6.
    The Video Display
  6. Save your model (We used the name “Video_sim.mdl", that you may find it here ).

Real-time processing with the dm6437 dvdp

Using a camera and a display

The procedure for capture/display video using the DM6437 is shown in Figure 7.

Using the Video I/O of the DM6437 board

Ccs code generation

This procedure is similar to the one developed for stills pictures. Video will be capture/display using a camera and a monitor. Image acquisition and Processing will run in a DSP/BIOS task.

  1. Open the “stills_R_W.mdl”
  2. Delete the “From RTDX” and “To RTDX” blocks
  3. Add the "Task" block from the "DSP/BIOS library" group of the "Target Support Package TC6" Blockset.
  4. Add the “Function- Call Subsystem” from the “Ports&Subsystems" group of the "Simulink" Blockset (Please refer to Figure 8).
    The "Function-Call Subsystem" Block
  5. Rename “Function- Call Subsystem” to “Video Processing” and connect it to the “Task” block.
  6. Save the model as “Video_R_W.mdl”. Your model should look as follows You may add a title to the model, as done here ( ”Video Processing Template”) :
    The Video Processing Model Template
  7. Double-click the “Task” block and make the same changes as shown in Figure 34.
    Configuring a "Task"
  8. Double-click the “Video Processing” block. A new window will be opened.
  9. In the new window, add the "Video Capture" and "Video Display" from the "DM6437 EVM Board Support" group of the ""Target Support Package TC6" Blockset as shown in Figure 11.
    The "Video Capture" block
  10. Double-click the “Video Capture” block and change the Sample Time (and the Video capture mode only if you are using the components in the PAL mode) as shown in Figure 12.
    Video Capture Configuration
  11. Double-click the “Video Display” block and change the Video capture mode only if you are using the components in the PAL If the camera video capture mode is NTSC you should choose this option mode as shown in Figure 13.
    Video Display Configuration
  12. Connect the blocks as shown in Figure 14.
    Capturing and Displaying Video
  13. Generate code&create project. Double-click the " Generate code&.." block.
  14. Build the project. Double-click the “Build Project” block.
  15. Load the project. Double-click the “Load Project” block.
  16. Run the target. Double-click the “Run” block. This model can be found here .

Questions & Answers

Biology is a branch of Natural science which deals/About living Organism.
Ahmedin Reply
what is phylogeny
Odigie Reply
evolutionary history and relationship of an organism or group of organisms
AI-Robot
ok
Deng
what is biology
Hajah Reply
cell is the smallest unit of the humanity biologically
Abraham
what is biology
Victoria Reply
what is biology
Abraham
HOW CAN MAN ORGAN FUNCTION
Alfred Reply
the diagram of the digestive system
Assiatu Reply
allimentary cannel
Ogenrwot
How does twins formed
William Reply
They formed in two ways first when one sperm and one egg are splited by mitosis or two sperm and two eggs join together
Oluwatobi
what is genetics
Josephine Reply
Genetics is the study of heredity
Misack
how does twins formed?
Misack
What is manual
Hassan Reply
discuss biological phenomenon and provide pieces of evidence to show that it was responsible for the formation of eukaryotic organelles
Joseph Reply
what is biology
Yousuf Reply
the study of living organisms and their interactions with one another and their environment.
Wine
discuss the biological phenomenon and provide pieces of evidence to show that it was responsible for the formation of eukaryotic organelles in an essay form
Joseph Reply
what is the blood cells
Shaker Reply
list any five characteristics of the blood cells
Shaker
lack electricity and its more savely than electronic microscope because its naturally by using of light
Abdullahi Reply
advantage of electronic microscope is easily and clearly while disadvantage is dangerous because its electronic. advantage of light microscope is savely and naturally by sun while disadvantage is not easily,means its not sharp and not clear
Abdullahi
cell theory state that every organisms composed of one or more cell,cell is the basic unit of life
Abdullahi
is like gone fail us
DENG
cells is the basic structure and functions of all living things
Ramadan
What is classification
ISCONT Reply
is organisms that are similar into groups called tara
Yamosa
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