gpt4 book ai didi

python-3.x - 谷歌 Colaboratory opencv xfeatures2d_SURF

转载 作者:行者123 更新时间:2023-12-02 17:37:29 24 4
gpt4 key购买 nike

!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)


import cv2
cv2.xfeatures2d_SURF

AttributeError:模块“cv2.cv2”没有属性“xfeatures2d_SURF”

为什么它不起作用?

最佳答案

xfeatures2d_SURF不是一个适当的功能。

试试:cv2.xfeatures2d.SURF_create()测试您的安装。

Here是一个展示如何在 python 中使用 SURF 的教程。

关于python-3.x - 谷歌 Colaboratory opencv xfeatures2d_SURF,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48846697/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com