Document directory
- Compile the kernel
- Install driver
- View the camera model
- Download
- Install
- Use the spcaview Tool
- Implemented through the C/S architecture
- Implemented through B/S architecture
Download the driver at the http://mxhaard.free.fr, kernel version is 2.6.11 or above with gspca, 2.6.11 or below with spca5xx (this is not absolute, because I used to drive in 2.6.17 ).
Directory [Hide]
- 1 Driver Installation
- 1.1 compile the kernel
- 1.2 install driver
- 1.3 view the camera model
- 2. Install the camera Application
- Download 2.1
- 2.2 Installation
- 2.3 use the spcaview Tool
- 3. Set up a network video monitoring server
- 3.1 implemented through the C/S architecture
- 3.2 implemented through B/S architecture
|
[Edit]
Driver Installation [edit]
Compile the kernel
<M> video for Linux
V4l USB devices --->
<M> USB zc0301 [p] image processor and control chip support (varies from person to person)
These two options must be m, not *
[Edit]
Install driver
1> Gentoo
Emerge-AV gspca-modules-2.6.18-4-686 (2.6.18-4-686 corresponds to kernel version)
2> Debian
apt-get insall gspcac1
[Edit]
View the camera model
Run the command: lsusb. my options are: Bus 002 device 003: Id 0ac8: 301b Z-star Microelectronics Corp. zc0301 webcam.
On Linux, video chat tools include amsn and ekiga (gnomemeeting). If you are interested, go to the Internet to find installation and usage methods.
[Edit]
Install the camera Application
On Linux, the camera applications include spcaview and spcagui. Here we only introduce the installation method of spcaview. Spcaview software package, including a set of tools: spcaview is used to record data streams, and can also be used to play data. spcaserv is a simple image capturing tool for the Streaming Media Server spcacat.
[Edit]
Download
Spcaview is: http://mxhaard.free.fr/spca50x/Download spcaview depends on libsdl (using the SDL-config command), is: http://www.libsdl.org
[Edit]
Install
1)
cd SDL-*
./configure ; make ;make install
2)
cd spcaview-*
make ; make install
[Edit]
Use the spcaview Tool
1) capture images
spcaview -d /dev/video0 -f jpg -s 320x240
2) capture data streams
spcaview -f yuv -o ***.avi
For more information about spcaview usage, see spcatools HOWTO: http://mxhaard.free.fr/sview.html
[Edit]
Set up a network video monitoring server [edit]
Implemented through the C/S architecture
1) run the server (spcaserv)
Spcaserv-s resolution-w ip Address: port, such as spcaserv-s 320x240-W 192.168.0.172: 7070
2) run the client monitoring data stream (spcaview)
Spcaview-s resolution-w ip Address: port, such as spcaview-s 320x240-W 192.168.0.172: 7070
[Edit]
Implemented through B/S architecture
1) Configure Apache to set Apache's home directory to/var/www/html/webcam
CP-rfv spcaview-*/HTTP-Java-applet/*/var/www/html/webcam
Chmod 777/var/www/html/webcam/-R
CP index-sample.html index.htm (index-sample.html is the video homepage)
2) We can monitor the installation of the Java Plug-in through a browser. browser monitoring can be used for cross-platform monitoring, regardless of Linux, windows, MacOS, BSD, and other UNIX systems, as long as there is a graphical browser, You can monitor the range of the camera in the desktop environment. Because the web page on the server contains Java controls, you must install the Java environment. I am using the Firefox browser. Just give it a link:
ln -s /opt/jdk1.5.0_03/jre/plugin/i386/ns7/libjavaplugin_oji.so /opt/firefox/plugins/
You can also create a link in the root directory of the current user:
mkdir ~/.mozilla/firefox/plugins
cp libjavaplugin_oji.so ~/mozilla/firefox/plugins
(The plug-in the ns7-gcc29 cannot be used here, otherwise Firefox will report an error and Exit)
3) run the server (spcaserv)
Spcaserv-s resolution-w ip Address: port, such as spcaserv-s 320x240-W 192.168.0.172: 7070
4) use Web Monitoring Data Streams
Enter localhost or local IP in the address bar of Firefox.