surf

OpenCV image comparison in Android

£可爱£侵袭症+ 提交于 2019-11-27 06:55:33
[EDIT] I have devised some code for image comparison. The matching part is still a bit flawed and I would love some assitance. The project can be found at - GitHub . I have these two images Img1 and Img2 : When I use the following command in openCV Mat img1 = Highgui.imread("mnt/sdcard/IMG-20121228.jpg"); Mat img2 = Highgui.imread("mnt/sdcard/IMG-20121228-1.jpg"); try{ double l2_norm = Core.norm( img1, img2 ); tv.setText(l2_norm+""); } catch(Exception e) { //image is not a duplicate } I get a double value for l2_norm. This double value varies for duplicate image pairs. But if the images are

Can't use SURF, SIFT in OpenCV

谁都会走 提交于 2019-11-27 00:17:45
I'm trying a simple thing like detector = cv2.SIFT() and get this bad error detector = cv2.SIFT() AttributeError: 'module' object has no attribute 'SIFT' I do not understand that because cv2 is installed. cv2.__version__ is $Rev: 4557 $ My system is Ubuntu 12.04. Maybe someone has got the same problem and could help me. EDIT: Long story short, testypypypy.py : import cv2 detector = cv2.SIFT() ERROR: Traceback (most recent call last): File "testypypy.py", line 3, in <module> detector = cv2.SIFT() AttributeError: 'module' object has no attribute 'SIFT If I take SURF it works because SURF is in

Nonfree module is missing in OpenCV 3.0

江枫思渺然 提交于 2019-11-26 18:58:33
I have built the openCV 3.0 alpha version from source with support for CUDA and TBB. Now, I want to do feature detection and feature matching using SURF algorithm. SurfFeatureDetector is present in the include file opencv2/nonfree/features2d.hpp & opencv2/nonfree/features2d.hpp But the module nonfree is missing in this version of openCV. I tried checking the opencv forums at answers.opencv.org but the site is under construction. How to use the non free modules? with opencv3.0, SURF/SIFT and some other things have been moved to a seperate opencv_contrib repo . you will have to download that,

OpenCV SURF function is not implemented

女生的网名这么多〃 提交于 2019-11-26 17:44:17
问题 When I try to run the sample find_obj.cpp or any OpenCV SURF program I get the following error in command prompt while executing the code. The project builds without errors and warnings. I am using VS2011 beta, OpenCV 2.4 and windows7. Error message: OpenCV Error: The function/feature is not implemented < OpenCV was built without SURF support> in unknown function,file ..\..\..\src\opencv\modules\legacy\src\features2d.cpp, line 77 I tried to build the OpenCV 2.4 again using Cmake and then

OpenCV / SURF How to generate a image hash / fingerprint / signature out of the descriptors?

可紊 提交于 2019-11-26 10:08:48
问题 There are some topics here that are very helpful on how to find similar pictures. What I want to do is to get a fingerprint of a picture and find the same picture on different photos taken by a digital camera. The SURF algorithm seams to be the best way to be independent on scaling, angle and other distortions. I\'m using OpenCV with the SURF algorithm to extract features on the sample image. Now I\'m wondering how to convert all this feature data (position, laplacian, size, orientation,

Can&#39;t use SURF, SIFT in OpenCV

混江龙づ霸主 提交于 2019-11-26 09:18:26
问题 I\'m trying a simple thing like detector = cv2.SIFT() and get this bad error detector = cv2.SIFT() AttributeError: \'module\' object has no attribute \'SIFT\' I do not understand that because cv2 is installed. cv2.__version__ is $Rev: 4557 $ My system is Ubuntu 12.04. Maybe someone has got the same problem and could help me. EDIT: Long story short, testypypypy.py : import cv2 detector = cv2.SIFT() ERROR: Traceback (most recent call last): File \"testypypy.py\", line 3, in <module> detector =

Nonfree module is missing in OpenCV 3.0

三世轮回 提交于 2019-11-26 06:44:04
问题 I have built the openCV 3.0 alpha version from source with support for CUDA and TBB. Now, I want to do feature detection and feature matching using SURF algorithm. SurfFeatureDetector is present in the include file opencv2/nonfree/features2d.hpp & opencv2/nonfree/features2d.hpp But the module nonfree is missing in this version of openCV. I tried checking the opencv forums at answers.opencv.org but the site is under construction. How to use the non free modules? 回答1: with opencv3.0, SURF/SIFT