sift

Using SIFT (or an alternative) in Python OpenCV 4.2.0 (In 2020)

久未见 提交于 2021-01-28 04:00:49
问题 I am trying to use SIFT for feature detection with Python, but it is no longer part of OpenCV or OpenCV contrib. With OpenCV opencv-contrib-python (both versions 4.2.0.34, the latest as of this question), I get: >>> import cv2 >>> cv2.SIFT_create() Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: module 'cv2.cv2' has no attribute 'SIFT_create' >>> cv2.xfeatures2d.SIFT_create() Traceback (most recent call last): File "<stdin>", line 1, in <module> cv2

Using SIFT (or an alternative) in Python OpenCV 4.2.0 (In 2020)

徘徊边缘 提交于 2021-01-28 03:49:10
问题 I am trying to use SIFT for feature detection with Python, but it is no longer part of OpenCV or OpenCV contrib. With OpenCV opencv-contrib-python (both versions 4.2.0.34, the latest as of this question), I get: >>> import cv2 >>> cv2.SIFT_create() Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: module 'cv2.cv2' has no attribute 'SIFT_create' >>> cv2.xfeatures2d.SIFT_create() Traceback (most recent call last): File "<stdin>", line 1, in <module> cv2

SIFT & SURF : Set OPENCV_ENABLE_NONFREE CMake ==> Solution OpenCV 3 & OpenCV 4 [closed]

五迷三道 提交于 2020-12-14 06:24:12
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed last month . Improve this question I try to use the SIFT and SURF function with some of the versions of OpenCV 3 and openCV 4 (after having installed opencv-contrib-python) with: pip install opencv-contrib-python i try version 3.4.3 and 3.4.9 and 4.1.0, but have same probleme: sift = cv2.xfeatures2d.SIFT_create(

Trouble installing CudaSift

流过昼夜 提交于 2020-08-06 04:46:06
问题 I just moved to C++ from Python. I'm using VSCode and I'd like to use the following library: https://github.com/Celebrandil/CudaSift . So I clone the repo, make a build folder inside, cd to the build folder, use: cmake .. then sudo make and finally sudo make install I get the following output in console: After completing these steps, I get a shared library file called 'cudasift'. From what I understand, I must then compile my code, which is the following: #include <iostream> #include <opencv4

Cannot run Sift with opencv on MacOs

白昼怎懂夜的黑 提交于 2020-06-28 04:05:20
问题 When I try to run cv2.xfeatures2d.SIFT_create() I get this error message: error: OpenCV(4.2.0) /Users/travis/build/skvark/opencv-python/opencv_contrib/modules/xfeatures2d/src/sift.cpp:1210: error: (-213:The function/feature is not implemented) This algorithm is patented and is excluded in this configuration; Set OPENCV_ENABLE_NONFREE CMake option and rebuild the library in function 'create' saying to set OPENCV_ENABLE_NONFREE but I installed opencv with homebrew that has that option already

ucrtbase.dll: An invalid parameter was passed to a function that considers invalid parameters fatal

生来就可爱ヽ(ⅴ<●) 提交于 2020-06-01 03:19:25
问题 I'm currently working on a personal project with OpenCV and I have a few issues during the execution of the program. After implementing an AKAZE + BOW recognizer (which didn't seem to work well enough for my problem) I wanted to try out a SIFT (and eventually SURF) implementation. For my project I'm following this one found on github and I'm using VS2015 (community) and OpenCV 2.4.13 over Windows 10. The issue I'm having, as stated in the title, lies with the ucrtbase.dll which gets an

Can't use SIFT in OpenCV v4.20

橙三吉。 提交于 2020-04-16 02:09:09
问题 I am using OpenCV v4.20 and PyCharm IDE. I want to use SIFT algorithm. But I get this error. I looked for solutions of this error on the internet but none of them did help me. Do you know the solution of this error? (With pip i can install at least 3.4.2.16 version of OpenCV) Here is my error: Traceback (most recent call last): File "C:/Users/HP/PycharmProjects/features/featuredetect.py", line 7, in sift = cv.xfeatures2d_SIFT.create() cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv

Can't use SIFT in OpenCV v4.20

余生长醉 提交于 2020-04-16 02:07:24
问题 I am using OpenCV v4.20 and PyCharm IDE. I want to use SIFT algorithm. But I get this error. I looked for solutions of this error on the internet but none of them did help me. Do you know the solution of this error? (With pip i can install at least 3.4.2.16 version of OpenCV) Here is my error: Traceback (most recent call last): File "C:/Users/HP/PycharmProjects/features/featuredetect.py", line 7, in sift = cv.xfeatures2d_SIFT.create() cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv

特征检测(二):OpenCV中的SIFT尺度不变特征变化特征检测技术

只谈情不闲聊 提交于 2020-03-25 11:47:52
3 月,跳不动了?>>> 目标 在这一章当中, 我们将学习SIFT算法的概念 我们将学习如何找到SIFT关键点和描述符。 理论 在最后几章中,我们看到了一些角落探测器,如哈里斯等。它们是旋转不变的,这意味着,即使图像旋转了,我们也可以找到相同的角落。这是显而易见的,因为角落在旋转的图像中也是角落。但是缩放呢?如果图像缩放,角落可能不是角落。例如,请查看下面的简单图片。放大同一个窗口时,小窗口内的小图像中的一个角落是平坦的。所以哈里斯的角落不是规模不变的。 因此,2004年,不列颠哥伦比亚大学的 D.Lowe 在他的论文中提出了一种新的算法 - 尺度不变特征变换(SIFT),该算法 从尺度不变关键点 获取 特征图像特征 ,提取关键点并计算其描述符。 (本文很容易理解,并被认为是SIFT上最好的资料,所以这个解释只是本文的一个简短摘要) 。 SIFT算法主要涉及四个步骤。我们将逐一看到他们。 1.尺度空间极值检测 从上图中可以看出,我们不能使用相同的窗口来检测不同比例的关键点。小角落也行。但要检测更大的角落,我们需要更大的窗口。为此,使用缩放空间滤波。其中,高斯拉普拉斯可以找到具有各种 值的图像。LoG作为一个斑点检测器,可以检测由于变化而产生的各种大小的斑点 。总之, 作为缩放参数。例如,在上面的图像中,低的高斯内核 为小角部提供高值,而高斯内核高度 适合较大的角部。因此

CV codes代码分类整理合集(http://www.sigvc.org/bbs/thread-72-1-1.html)

匆匆过客 提交于 2020-03-14 03:46:09
一、特征提取Feature Extraction: SIFT [1] [ Demo program ][ SIFT Library ] [ VLFeat ] PCA-SIFT [2] [ Project ] Affine-SIFT [3] [ Project ] SURF [4] [ OpenSURF ] [ Matlab Wrapper ] Affine Covariant Features [5] [ Oxford project ] MSER [6] [ Oxford project ] [ VLFeat ] Geometric Blur [7] [ Code ] Local Self-Similarity Descriptor [8] [ Oxford implementation ] Global and Efficient Self-Similarity [9] [ Code ] Histogram of Oriented Graidents [10] [ INRIA Object Localization Toolkit ] [ OLT toolkit for Windows ] GIST [11] [ Project ] Shape Context [12] [ Project ] Color Descriptor [13] [ Project ] Pyramids