User`s guide
Basic Image Acquisition Procedure
Basic Image Acquisition Procedure
In this section.. .
“Overview” on page 1-5
“Step 1: Install Your Image A cquisition Device” on page 1-6
“Step 2: Retrieve H ardware Information” on page 1-7
“Step 3 : Create a Video Input O bject” on page 1-9
“Step 4: Previe
w the Video Stream (Optional)” on page 1-11
“Step 5: Configure Object Properties (Optional)” on page 1-13
“Step 6: Acquire Image Data” on page 1-16
“Step 7: C lean Up” on page 1-20
Overview
This section i
llustrates the basic steps required to create an image acquisition
application b
y implementing a simple motion detection application. The
application
detects movement in a scene by performing a pixel-to-pixel
comparison i
n pairs of incoming image frames. If nothing mov es in the s cene,
pixel values
remain the same in each frame. When something moves in the
image, the a
pplication displays the pixels that have changed values.
The example
highlights how you can u se Image Acquisition Toolbox to create
aworkingim
age acquisition application with only a few lines of code.
Note To run t
he sample code in this exam ple, you must have an image
acquisitio
n device connected to your system. The de vice can be a pro fessio n al
grade imag
e acquisition device, such as a frame grabber, or a generic Windows
image acqu
isition device, such as a webcam. The code can be used with
various ty
pes of devices with o nly minor changes.
1-5