我正在尝试使用opencv_contrib模块,但在成功构建了最新的opencv (3.0)和opencv_contrib之后,当我在python2子文件夹的opencv_contrib文件夹中运行示例时,我得到了以下信息:
opencv_contrib/samples/python2$ python seeds.py
This sample demonstrates SEEDS Superpixels segmentation
Use [space] to toggle output mode
Usage:
seeds.py [<video source>]
init done
opengl support available
Traceback (most recent call last):
File "seeds.py", line 54, in <module>
seeds = cv2.ximgproc.createSuperpixelSEEDS(width, height, channels,
AttributeError: 'module' object has no attribute 'ximgproc'我错过了什么?
发布于 2015-11-22 01:12:13
它说你需要在seeds.py之后提供一个视频源,就像这条消息中提到的:
Usage:
seeds.py [<video source>]
^https://stackoverflow.com/questions/33845763
复制相似问题