WEBCAMを使う (カメラをhttpサーバーに接続)
# cd /usr/local/src # tar xvzf qce-ga-0.40d.tar.gz # cd qce-ga-0.40d # make |
# cd /usr/local/src/qce-ga-0.40d # ./quickcam.sh |
alias camera mod_quickcam |
# cp /usr/local/src/qce-gq-0.40d/mod_quickcam.o /lib/modules/2.4.18-14/kernel/drivers/usb/ |
# depmod -a # lsmod Module Size Used by Not tainted mod_quickcam 41840 0 (unused) ov511 83512 1 videodev 8320 2 [mod_quickcam ov511] usbcore 77056 1 [mod_quickcam ov511 hid usb-uhci] |
[ftp] dir= public_html file = webcam.jpg tmp= uploading.jpg local = 1 [grab] device = /dev/video0 text = "%Y-%m-%d %H:%M:%S" #infofile = filename width = 320 height = 240 delay = 5 #input = composite1 rotate = 0 top = 0 left = 0 bottom = -1 right = -1 quality = 100 trigger = 0 #once = 0 |
# webcam reading config file: /home/takahasi/.webcamrc video4linux webcam v1.4 - (c) 1998-2002 Gerd Knorr |
/usr/bin/webcam /etc/.webcamrc 2>/dev/null>/dev/null& |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=EUC-JP"> <meta http-equiv="Content-Style-Type" content="text/css"> <meta http-equiv="refresh" content="5"> <title>現在の実験室</title> </head> <body> <p>現在の実験室</p> <hr> <p><img src="http://ce.hakodate-ct.ac.jp/webcam.jpg" border="1"></p> <hr> </body> </html> |