简体   繁体   English

Google合作实验室opencv xfeatures2d_SURF

[英]google Colaboratory opencv xfeatures2d_SURF

!pip install opencv-python && pip install opencv-contrib-python

Requirement already satisfied: opencv-python in /usr/local/lib/python3.6/dist-packages Requirement already satisfied: numpy>=1.11.3 in /usr/local/lib/python3.6/dist-packages (from opencv-python) Requirement already satisfied: opencv-contrib-python in /usr/local/lib/python3.6/dist-packages Requirement already satisfied: numpy>=1.11.3 in /usr/local/lib/python3.6/dist-packages (from opencv-contrib-python) 已满足要求:/usr/local/lib/python3.6/dist-packages中的opencv-python已满足要求:/usr/local/lib/python3.6/dist-packages中的numpy> = 1.11.3(来自opencv -python)已满足要求:/usr/local/lib/python3.6/dist-packages中的opencv-contrib-python已满足要求:/usr/local/lib/python3.6/dist中的numpy> = 1.11.3 -packages(来自opencv-contrib-python)

import cv2
cv2.xfeatures2d_SURF

AttributeError: module 'cv2.cv2' has no attribute 'xfeatures2d_SURF' AttributeError:模块'cv2.cv2'没有属性'xfeatures2d_SURF'

Why does not it work? 为什么不起作用?

xfeatures2d_SURF is not a proper function. xfeatures2d_SURFxfeatures2d_SURF功能。

Try: cv2.xfeatures2d.SURF_create() to test your installation. 请尝试: cv2.xfeatures2d.SURF_create()测试安装。

Here is an tutorial showing how to use SURF in python. 是显示如何在python中使用SURF的教程。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM