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 <--- 安装方法