在OPENCV中,仅在C 中存在某些方法,如何在Python中做同一件事
Within OpenCV,some methods exist in c++ only,how to do same thing in python?
例如:
BackgroundSubtractorMOG2::setShadowThreshold(double threshold)
在Python中
cv2.createBackgroundSubtractorMOG2(detectShadows=True)
将返回一个对象,但是此对象没有任何方法,因此如何在Python中设置阴影阈值?
执行help(cv2.createBackgroundSubtractorMOG2())
时,它显示了Python
绑定上可用的方法。setShadowThreshold()
在那里。创建一个MOG2对象并调用该方法。
| setShadowThreshold(...)
| setShadowThreshold(threshold) -> None
希望这个帮助。
相关文章:
- 为什么make_tie不是一件事
- 不知道如何在家庭作业任务中实现一件事
- C++警告:编译指示在主文件中一次
- 如何将 compile_commands.json 与 llvm clang (版本 7.0.1) python 绑定一
- <<是一件C++的事情 - 相当于Java。
- 为什么会这样?堆,展示了一件事,然后又展示了另一件事
- 使用windows.h是一件好事吗?
- C++:关于加载 DLL 和调用函数的一件小事
- 虚拟析构函数会是一件坏事吗?
- 引用或复制结构的结构(已分配的memset)是一件有效的事情
- 我在wxPaint DC绘图中发现了一件奇怪的事情
- 通过多重私有继承扩展类-这是一件事吗
- 加工va_list一件一件
- 没有明显目标的std::cout在已发布代码中是一件不好的事情吗?
- 状态检查总是一件有效的事情吗
- 递归是一件坏事吗?在递归似乎最有用的地方,是否有更清晰或更有效的方法来解决问题?
- 使用 cpp 宏作为脚本语言是一件坏事吗?
- 指针强制转换以满足方法参数是一件危险的事情吗?
- 如何在Windows上每毫秒做一件事或做得更好
- 我做了一件阴暗的事情