surf

Surf missing in opencv 2.4 for python

纵饮孤独 提交于 2019-12-23 07:48:46
问题 I'm trying to instantiate a SURF object in python using OpenCV as described here but this happens: >>> import cv2 >>> cv2.__version__ '2.4.0' >>> cv2.SURF() Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: 'module' object has no attribute 'SURF' Does anyone know why this happens or if SURF is missing from the Python version of OpenCV? 回答1: It is a regression which should be fixed in the next library update. But SURF is not really absent. You still can

Surf missing in opencv 2.4 for python

不问归期 提交于 2019-12-23 07:48:14
问题 I'm trying to instantiate a SURF object in python using OpenCV as described here but this happens: >>> import cv2 >>> cv2.__version__ '2.4.0' >>> cv2.SURF() Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: 'module' object has no attribute 'SURF' Does anyone know why this happens or if SURF is missing from the Python version of OpenCV? 回答1: It is a regression which should be fixed in the next library update. But SURF is not really absent. You still can

Open CV object detection : ORB_GPU detector and SURF_GPU descriptor extractor

☆樱花仙子☆ 提交于 2019-12-22 12:26:11
问题 I was just making a small experiment to play around with different detector/descriptor combinations. My code uses an ORB_GPU detector for detection of features and SURF_GPU descriptor for calculating the descriptors. I uses a BruteForceMatcher_GPU to match the descriptors and i am suing the knnMatch method to get the matches. The problem is I am getting a lot of unwanted matches, the code is literally matching every feature it could find in both the images. I am quite confused with this

module object has no attribute 'DescriptorExtractor_create()'

落爺英雄遲暮 提交于 2019-12-22 08:10:07
问题 I installed opencv3.1.0 with opencv_contrib correctly installed but I am getting the error no module 'DescriptorExtractor_create()' and everything is fine. Suggestions??? :) 回答1: In OpenCV 3.x, SIFT and SURF have been removed because they are patented algorithms and as such are not installed by default. However they are available in the 'opencv_contrib' package which is not installed by default with the normal OpenCV installation. You need to install them manually. Consider this for details

video stabilization using opencv

拈花ヽ惹草 提交于 2019-12-21 22:01:55
问题 I am trying to do video stabilization with opencv(without the opencv video stabilization class). the steps for my algo is as follows-> Surf points extraction, Matching, Homography matrix, warpPerspective And the output video is not stabilized at all :(. it just looks like the original video. I could not find and reference code for video stabilization. I followed the procedure described here . Can anybody help me out by telling me where I am going wrong or provide me some source code link to

OpenCV Python: Occasionally get segmentation fault when using FlannBasedMatcher

末鹿安然 提交于 2019-12-21 19:52:47
问题 I'm trying to classify objects using SURF and kNN. The code work well however it occasionally crashes and shows 'Segmentation Fault'. I'm not sure whether I did something wrong but I'm pretty sure that it is corrected. Here is the input file in case that you want to reproduce the issue. Link to download the dataset import numpy as np import cv2 import sys trainfile = ['/home/nuntipat/Documents/Dataset/Bank/Training/15_20_front.jpg' , '/home/nuntipat/Documents/Dataset/Bank/Training/15_50_front

How to apply box filter on integral image? (SURF)

[亡魂溺海] 提交于 2019-12-21 06:27:45
问题 Assuming that I have a grayscale (8-bit) image and assume that I have an integral image created from that same image. Image resolution is 720x576 . According to SURF algorithm, each octave is composed of 4 box filters, which are defined by the number of pixels on their side. The first octave uses filters with 9x9, 15x15, 21x21 and 27x27 pixels. The second octave uses filters with 15x15, 27x27, 39x39 and 51x51 pixels. The third octave uses filters with 27x27, 51x51, 75x75 and 99x99 pixels. If

Different SURF Features Extracted Between MATLAB and OpenCV?

↘锁芯ラ 提交于 2019-12-19 08:55:22
问题 I'm implementing an algorithm in OpenCV that I've designed in MATLAB. I'm writing a unit test for the SURF feature extractor in OpenCV, and I want to compare the output of MATLAB's extracted SURF features to OpenCV. This issue is, using the same parameters for both MATLAB and OpenCV extractors I'm getting different numbers of features. How is this possible? Are there different ways to implement SURF? For MATLAB (http://www.mathworks.com/help/vision/ref/detectsurffeatures.html) I'm using:

emgu finding image a in image b [duplicate]

雨燕双飞 提交于 2019-12-18 11:55:44
问题 This question already has answers here : opencv finding image cordinates on another image (3 answers) Closed 6 years ago . I'm new to emgu and would like some advice on where to start. I've looked through the shape detection but its far too complex for what i need .. i think.. and my surfexample isn't working. I get this error: Cannot get SURF example in EMGU.CV to work? Anyway, this is what i would like to do: Find image A in image B. Image A is a simple square which always has the same grey

OpenCV - Surf Algorithm - Giving lots of false positives

╄→гoц情女王★ 提交于 2019-12-17 23:15:49
问题 I am learning OpenCV and have started exploring the SURF Algorithm for image matching. I have created a sample image library by modifying the default images available with Microsoft Windows 7. Each image has a rotated, scaled, blurred and skewed version in the same folder. My code for finding out matching images is as shown below. As can be seen in the code, the distance is measured by the line dis/objectDescriptors->total and further similarity is calculated by 100 - (dis/objectDescriptors-