by Devin Yang

建立于: 6年前 ( 更新: 6年前 )

pi@raspberrypi:~ $ v4l2-ctl --list-formats-ext
ioctl: VIDIOC_ENUM_FMT
	Index       : 0
	Type        : Video Capture
	Pixel Format: 'YUYV'
	Name        : YUYV 4:2:2
		Size: Discrete 320x240
			Interval: Discrete 0.005s (187.000 fps)
			Interval: Discrete 0.007s (150.000 fps)
			Interval: Discrete 0.007s (137.000 fps)
			Interval: Discrete 0.008s (125.000 fps)
			Interval: Discrete 0.010s (100.000 fps)
			Interval: Discrete 0.013s (75.000 fps)
			Interval: Discrete 0.017s (60.000 fps)
			Interval: Discrete 0.020s (50.000 fps)
			Interval: Discrete 0.027s (37.000 fps)
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 640x480
			Interval: Discrete 0.017s (60.000 fps)
			Interval: Discrete 0.020s (50.000 fps)
			Interval: Discrete 0.025s (40.000 fps)
			Interval: Discrete 0.033s (30.000 fps)
			Interval: Discrete 0.067s (15.000 fps)
安装fswebcam
sudo apt install fswebcam

在非root的帐号,要先给video0硬体权限
sudo usermod -G video ${USER}

抓图
fswebcam -r 640x480 --no-banner image3.jpg
--- Opening /dev/video0...
Trying source module v4l2...
/dev/video0 opened.
No input was specified, using the first.
--- Capturing frame...
Captured frame in 0.00 seconds.
--- Processing captured image...
Disabling banner.
Writing JPEG image to 'image3.jpg'.

 

Tags:

Devin Yang

文章内容无法一一说明,如果您有什么不了解处,欢印提问哦:)

No Comment

Post your comment

需要登入才可留言!

类似文章


terminal,shortcuts,bash

终端机热键攻略

本文介绍及整理一些终端机的热键,来看看有那些你不知道的吧?快来试试。

product

Excelify已变更为Laravel Package安装版罗

Excelify是我使用Laravel开发的一套Excel数据转换工具,这个工具,目前战绩, 透过这个转换工具,我顺利将教育部公众授权的excel辞典文件,约有16万笔的数据,成语也有5千多笔。 都转换为我所需要的SQL格式,本文将探讨Excelify的功能及分享一些使用的注意事项。

laravel

在Laravel 5.5,好用的基本路由

特别对於有在研究SEO的朋友应该会知道,有时我们会需要进行301页面重导,在Laravel 5.5提供了 相当简易的Route::redirect的功能了,另外使用Route::view对於静态页面的套版也相当有用。