linux uvc协议_linux 使用 uvc 摄像头

第一种方法:

检测是否找到设备:

lsusb

检查端口:

ls  /dev/video*

安装适合的工具guvcview

sudo add-apt-repository ppa:pj-assis/ppa

sudo apt-get update

sudo apt-get install guvcview

测试摄像头

guvcview -d /dev/video1/

参考:https://www.ncnynl.com/archives/201706/1772.html

/

第二种方法:

下载luvcview的完整包:

https://launchpad.net/ubuntu/+source/luvcview/1:0.2.6-4

安装依赖库具体命令如下:

sudo apt-get install debhelper

sudo apt-get install libsdl1.2-dev

sudo apt-get install libv4l-dev

sudo apt-get install pkg-config

tar -xvf luvcview_0.2.6.orig.tar.gz

cd luvcview-0.2.6

make

提示

uvcvideo.h:5:10: fatal error: linux/videodev.h: No such file or directory

#include

解决方法:

sudo ln -s /usr/include/linux/videodev2.h /usr/include/linux/videodev.h

再进行 make

测试:

luvcview -d /dev/video0 -L

./luvcview -d /dev/video0 -f yuv -s 640x480

./luvcview -d /dev/video1 -f jpg -s 640x480

参考:

https://blog.csdn.net/qq_44596345/article/details/88390562

http://dev.t-firefly.com/thread-957-1-1.html

\https://blog.csdn.net/u014795817/article/details/75652496

https://www.jianshu.com/p/20d4b81f8d14

https://blog.csdn.net/morixinguan/article/details/51001713

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值