linux v4l2 开发笔记

jpeg库 安装

缺少libjpeg 错误
fatal error: jpeglib.h: No such file or directory
解决方法
Ubuntu Software Center -> search -> libjpeg -> install libjpeg8-dev


yuv查看工具

sudo apt-get install imagemagick
convert -size widthxheight input.yuv output.bmp 

v4l2grab

This is a small command line utility for grabbing JPEGs form V4L2 devices (e.g. USB webcams).

v4l2grap 代码,依赖包安装,v4l2grap 用于在v4l2的基础上使用摄像头拍摄照片,编译成功后,使用下面的命令拍摄照片

./v4l2grap -o image.jpg
 1. Install the required libraries (libv4l and libjpeg) and autotools
	 sudo apt-get install libjpeg8-dev libv4l-dev autoconf automake libtool

 2. Clone the repository
	git clone https://github.com/twam/v4l2grab.git
 
 3. Creating autotools files
	./autogen.sh
 
 4. Run configure
	./configure
 
 5. Run make
	make
 
 6. Run make install
	sudo make install
 
安装方法,参照地址

https://github.com/twam/v4l2grab/tree/master <--- 源码

https://github.com/twam/v4l2grab/wiki/Installation <--- 安装方法

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值