apk add libxml2-dev libxml2 libxml2-utils libxml++-2.6-dev libjpeg-turbo-dev libturbojpeg- apk add build-base git cmake autoconf automake libtool wget -O libwebcam-src-0.2.5.tar.gz https://sourceforge.net/projects/libwebcam/files/source/libwebcam-src-0.2.5.tar.gz/download tar xvzf libwebcam-src-0.2.5.tar.gz cd libwebcam-0.2.5/ cmake . make make install uvcdynctrl -l
apk add v4l-utils v4l-utils-dev v4l-utils-libs qv4l2 libcamera-v4l2
uvcdynctrl -d /dev/video0 -S 6:8 '(LE)0x50ff' uvcdynctrl -d /dev/video0 -S 6:15 '(LE)0x00f6' uvcdynctrl -d /dev/video0 -S 6:8 '(LE)0x2500' uvcdynctrl -d /dev/video0 -S 6:8 '(LE)0x5ffe' uvcdynctrl -d /dev/video0 -S 6:15 '(LE)0x0003' uvcdynctrl -d /dev/video0 -S 6:15 '(LE)0x0002' uvcdynctrl -d /dev/video0 -S 6:15 '(LE)0x0012' uvcdynctrl -d /dev/video0 -S 6:15 '(LE)0x0004' uvcdynctrl -d /dev/video0 -S 6:8 '(LE)0x76c3' uvcdynctrl -d /dev/video0 -S 6:10 '(LE)0x0400'
安装成功后可以在bash下运行命令:uvcdynctrl -d /dev/video0 -S 6:10 '(LE)0x0400' 来控制该摄像头显示双摄像头数据
# uvcdynctrl -d /dev/video0 -c [libwebcam] Invalid V4L2 control type encountered: ctrl_id = 0x00980001, name = 'User Controls', type = 6 [libwebcam] Invalid or unsupported V4L2 control encountered: ctrl_id = 0x00980001, name = 'User Controls' Listing available controls for device /dev/video0: Brightness Contrast Saturation Hue White Balance, Automatic Gamma Power Line Frequency White Balance Temperature Sharpness Backlight Compensation
uvcdynctrl -d /dev/video0 -s "Brightness" 128 uvcdynctrl -d /dev/video0 -s "Exposure, Auto" 1 # 关闭自动曝光 uvcdynctrl -d /dev/video0 -s "Exposure (Absolute)" 100
参考:
https://blog.51cto.com/u_15202985/6005161
https://www.cnblogs.com/astreye/p/8399792.html