本文介绍了OpenCV 3.0中缺少cv2.cv吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚在Win7上安装了OpenCV 3,以便与Python 2.7一起使用.我已经将cv2.pyd复制到/DLLs.

I've just installed OpenCV 3 on Win7 for using with Python 2.7.I've copied cv2.pyd to /DLLs.

不幸的是,我尝试过的许多示例都无法正常工作,因为OpenCV3中似乎缺少cv2.cv

Unfortunately many examples I've tried, don't work, because cv2.cv seems to be missing in OpenCV3

有替代品吗?有没有在cv2.cv中声明过的新常量名称表?

Is there a replacement for it? Is there a table of new constant-names used to be declared in cv2.cv?

非常感谢!

推荐答案

是的,已弃用的cv2.cv在opencv3.0中已删除

yes, the deprecated cv2.cv was removed in opencv3.0

类似于:

import cv2

help(cv2)

将为您(大量)提供api的内容列表.

will give you a (looong) list of the api's content.

这篇关于OpenCV 3.0中缺少cv2.cv吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-23 02:17