Tryuvcc是一种从命令行配置 USB 视频类 (UVC) 兼容设备的工具。您可以uvcc在 github 上找到源代码。(注意:我是作者。)这是一个通用工具,应该适用于任何UVC 网络摄像头,尽管我只使用我的罗技 C920 HD Pro 网络摄像头对其进行了测试。
安装uvccnpm 包需要Node.js包括npm,或者使用npx.
# Install uvcc using npm.
npm install --global uvcc
# Alternatively, skip install and use npx as a prefix to all uvcc commands.
npx uvcc
Run Code Online (Sandbox Code Playgroud)
下面介绍如何关闭自动曝光和自动白平衡设置,并手动设置白平衡和对比度。其他控件可用。
# Export current configuration of the first UVC device found.
uvcc export
# Turn off automatic white balance.
uvcc set auto_white_balance_temperature 0
# Set the white balance temperature to 2000.
# NOTE: the white_balance_temperature range for Logitech C920 is 2000-6500.
uvcc set white_balance_temperature 2000
# Set exposure to manual.
uvcc set auto_exposure_mode 1
# Set exposure time to 500 milliseconds.
# NOTE: the absolute_exposure_time range for Logitech C920 is 3-2047.
uvcc set absolute_exposure_time 500
# Set the contrast to 192.
# NOTE: the contrast range for Logitech C920 is 0-255, default value 128.
uvcc set contrast 192
Run Code Online (Sandbox Code Playgroud)
还可以一次导出和导入多个设置,以防您需要针对各种情况可靠地重复配置一台或多台摄像机。见USAGE.md。
小智 3
也用 openCV 做了一些工作,并进行了非技术实现:一些胶带和黑卡,并简单地将光传感器覆盖在相机左侧。
完美运作!
iGlasses 解决方案无法解决该问题,因为亮度/对比度调整是由硬件执行的(我认为),因此它将影响 iGlasses 输入源并从而影响输出。我想你可以调整设置来尝试尽可能减轻这种影响,尽管不能完全对抗它。
| 归档时间: |
|
| 查看次数: |
38536 次 |
| 最近记录: |