python - 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'>)
所以我可以成功读取参数但我无法更改它们。
关于如何解决这个问题的任何想法?
解决方案
推荐阅读
- reactjs - npm 链接无法按预期工作,但可以看到节点模块已更新
- c - C 动态内存分段错误
- r - 根据代码块中计算的值创建 R Markdown 表
- python - MySQL 和 Python Flask:TypeError:列表索引必须是整数或切片,而不是 str
- python - 如何修复这个“幽灵”错误?
- r - RStudio R Markdown Notebook:更改源面板中“块背景突出显示”选项的颜色(不是针织文档)
- redux - 使用 react redux 工具包发布请求
- xcode - XCode 中等效的 Visual Studio 代码映射
- typescript - 如何为作为函数参数并且可以具有任何参数和任何返回的函数设置类型
- c++ - 运行 ns2 模拟器时出错:-无法读取“ns_03”:-没有此类变量