如何禁用 iSight 自动调整?

Geo*_*nza 16 mac webcam isight macos

我 MacBook 机器上的内置 iSight cam 不断重新调整照明(我认为是对焦)。我需要手动设置这些,但我发现在 System Preferences 或 System Profiler 中没有任何用处。

有什么方法可以访问设置吗?任何允许访问相机的魔术终端命令有人有允许任何相机访问的驱动程序吗?

Joe*_*rra 9

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

  • 这在我 2012 年年中 MacBook Pro 的内置 iSight/FaceTime 摄像头上非常适合我。只需要设置 `autoExposureMode 1`,然后将 `absoluteExposureTime` 设置为所需的时间(以毫秒为单位)(在我的情况下为 `500`)。 (2认同)

小智 3

也用 openCV 做了一些工作,并进行了非技术实现:一些胶带和黑卡,并简单地将光传感器覆盖在相机左侧。

完美运作!

iGlasses 解决方案无法解决该问题,因为亮度/对比度调整是由硬件执行的(我认为),因此它将影响 iGlasses 输入源并从而影响输出。我想你可以调整设置来尝试尽可能减轻这种影响,尽管不能完全对抗它。