首页 > 解决方案 > Lepton 相机:使用 Python 控制快门模式

问题描述

我正在使用 Lepton 相机,我正在尝试控制快门模式(从 AUTO 模式切换到 MANUAL 模式)。我正在使用 OpenCV 进行视频采集,但 opencv 中没有可用于更改快门模式的参数。

我也尝试使用 LeptonSDK,但这段代码在最后一行返回了一个错误:

print("SHUTTER MODE: ", self.lepton.sys.GetFfcShutterModeObj().shutterMode)
manual_mode = Lepton.CCI.Sys.FfcShutterMode.MANUAL
auto_mode = Lepton.CCI.Sys.FfcShutterMode.AUTO
external_mode = Lepton.CCI.Sys.FfcShutterMode.EXTERNAL

self.lepton.sys.SetFfcShutterModeObj(manual_mode)

错误信息:TypeError: No method matches given arguments for SetFfcShutterModeObj: (<class 'int'>)

所以我可以成功读取参数但我无法更改它们。

关于如何解决这个问题的任何想法?

标签: pythonsdkcamerashutter

解决方案


推荐阅读