【发布时间】:2017-11-26 07:20:03
【问题描述】:
OpenCV 3.2.0 似乎没有 RTrees 库。
但是互联网上到处都是 cv2.RTrees 的例子。我想可能是版本不匹配的问题 - 也许版本是错误的?应该是 3.2.0-dev 吗?
但在 Fedora 24 上,我似乎无法在互联网上找到这个包。我只看到只有 ubuntu 用户可以安装 3.2.0-dev。我错过了什么吗?
>>> import cv2
>>> cv2.__version__
'3.2.0'
>>> cv2.RTrees
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'RTrees'
>>> cv2.ml.RTrees
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'RTrees'
【问题讨论】:
-
我在 Ubuntu 16 上使用`OpenCV` 3.2.0 版并且也遇到了这些错误
-
显然,这个问题最近得到了解决。我会在我的答案中发布它。更新到最新版本应该可以解决这个问题。
标签: python-2.7 opencv fedora opencv3.2