红联Linux门户
Linux帮助
当前位置: 红联Linux门户 > Debian

debian linux下面安装摄像头

发布时间:2007-10-10 00:25:52来源:红联作者:Xsession.d
  摄像头是天敏的minicom,硬件像素30万,插值像素48万。最大分辨率640x480.

  安装驱动的过程如下:
  软件包是spca5xx-source。这是 source for the spca5xx driver。apt-get 安装以后,在/usr/src/下面有驱动的源码包。解压后

  [root@localhost spca5xx-20060501]# make
  [root@localhost spca5xx-20060501]# make install
  [root@localhost spca5xx-20060501]# modprobe spca5xx

  看看驱动模块挂载好了没有?
  [root@localhost spca5xx-20060501]# lsmod |grep spca5xx
  spca5xx 659920 0
  videodev 7040 1 spca5xx

  我们再查看一下设备/dev/video0是否存在?
  [root@localhost spca5xx-20060501]# ls -lh /dev/video0
  crw------- 1 beinan root 81, 0 06-08 09:33 /dev/video0

还可以这样查看硬件信息:

root@etch:~$ lshal | grep video4linux

udi = '/org/freedesktop/Hal/devices/usb_device_ac8_303b_noserial_video4linux'

info.udi = '/org/freedesktop/Hal/devices/usb_device_ac8_303b_noserial_video4linux' (string)

linux.subsystem = 'video4linux' (string)

video4linux.device = '/dev/video0' (string)

info.capabilities = {'video4linux'} (string list)

info.category = 'video4linux' (string)

linux.sysfs_path = '/sys/class/video4linux/video0' (string)


root@etch:~$ lshal -l -u usb_device_ac8_303b_noserial

udi = '/org/freedesktop/Hal/devices/usb_device_ac8_303b_noserial'

info.udi = '/org/freedesktop/Hal/devices/usb_device_ac8_303b_noserial' (string)

linux.subsystem = 'usb' (string)

linux.hotplug_type = 1 (0x1) (int)

usb_device.bus_number = 2 (0x2) (int)

usb_device.can_wake_up = false (bool)

usb_device.is_self_powered = false (bool)

usb_device.version_bcd = 272 (0x110) (int)

usb_device.speed_bcd = 4608 (0x1200) (int)

usb_device.linux.device_number = 5 (0x5) (int)

usb_device.num_ports = 0 (0x0) (int)

usb_device.max_power = 160 (0xa0) (int)

usb_device.device_revision_bcd = 256 (0x100) (int)

info.product = 'PC Camera' (string)

usb_device.product = 'PC Camera' (string)

info.vendor = 'Vimicro Corp.' (string)

usb_device.vendor = 'Vimicro Corp.' (string)

usb_device.product_id = 12347 (0x303b) (int)

usb_device.vendor_id = 2760 (0xac8) (int)

usb_device.device_protocol = 0 (0x0) (int)

usb_device.device_subclass = 0 (0x0) (int)

usb_device.device_class = 255 (0xff) (int)

usb_device.num_configurations = 1 (0x1) (int)

usb_device.linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1d.1/usb2/2-2' (string)

info.linux.driver = 'usb' (string)

info.bus = 'usb_device' (string)

info.parent = '/org/freedesktop/Hal/devices/usb_device_0_0_0000_00_1d_1' (string)

linux.sysfs_path_device = '/sys/devices/pci0000:00/0000:00:1d.1/usb2/2-2' (string)

linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1d.1/usb2/2-2' (string)

然后,可以安装应用软件。

软件1:gqcam

可以用apt-get来安装。运行命令如下:

root@etch:~$ gqcam -v /dev/video0

这个东西的界面很大,几乎占了半个屏幕。不好用。

软件2:camstream

可以用apt-get来安装。还可以安装说明文档camstream-doc。

运行命令是:

root@etch:~$ camstream

可以自己添加菜单项来运行它。

软件3:SpcaView 软件包,包括一组工具

这个东西我只是听说。没有用过。
文章评论

共有 0 条评论