Specifications

Figure 18. The Functional Block of Camera Applications
Figure 18 shows the functional block of USB camera Applications. This
figure has three modes (layers), the bottom mode to up mode are kernel
mode, driver mode and application mode respectively. The kernel mode is
Linux kernel, the driver mode is the USB driver of M318B camera[9], and
the application mode include photo grab, photo display, motion detection
and top applications notification to cell phone and alarm.
The applications in Figure 18 would be discussed in the following
chapters.
3-4-2 Photo Grab
The USB cam grabs photos in Linux need Video4Linux[10], which is
intended to provide a common programming interface for the many TVs and
capture cards now on the market, as well as parallel port and USB video
cameras.
Start
Open the video
device
Get the capabilities
of video device
Set the channel of
video device
Reading images
loop
Close the vedio
device
Stop
Figure 19. Grab photos flow chat
35