在Ubuntu的OpenCV中找不到xfeatures2d [英] xfeatures2d not found in OpenCV on Ubuntu

查看:1624
本文介绍了在Ubuntu的OpenCV中找不到xfeatures2d的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用OpenCV版本3.2.0,并且在此上找不到xfeatures2d.有什么方法可以将其安装到相同版本的OpenCV?

I am using OpenCV version 3.2.0 and xfeatures2d is not found on this. Is there any way I can install this to the same version of OpenCV?

>>> import cv2
>>> help(cv2.xfeatures2d)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'xfeatures2d'

推荐答案

http://www.pyimagesearch.com/2015/06/22/install-opencv-3-0-and-python-2-7-on-ubuntu/ This link has all the steps required to install opencv 3 along with opencv_contrib.

如果xfeatures2d即使在完成上述链接中提到的所有步骤后仍无法工作,请克隆 https://github.com/opencv/opencv_contrib.git 用于opencv_contrib.

In case the xfeatures2d doesn't work even after finishing all the steps mentioned in the above link, then clone https://github.com/opencv/opencv_contrib.git for opencv_contrib.

这篇关于在Ubuntu的OpenCV中找不到xfeatures2d的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆