Ask Your Question
0

opencv2/nonfree/features2d.hpp file not getting in OpenCV-2.4.4-android-sdk

asked 2013-08-30 07:20:07 -0600

aklenka gravatar image

I am trying use the sample opencv code of Features2D + Homography to find a known object. When I used in opencv C++ platform I am not getting any issue. But when the same code used in Android system and the above code used inside jni .cpp then the below error getting.

fatal error: opencv2/nonfree/features2d.hpp: No such file or directory DetectionBasedTracker_jni.cpp /OpenCV Sample - face-detection/jni line 15 C/C++ Problem

SurfDescriptorExtractor' is not a member of 'cv' DetectionBasedTracker_jni.cpp /OpenCV Sample - face-detection/jni line 453 C/C++ Problem.

Even I checked the nonfree module is not available in Android OpenCV-2.4.4-android-sdk\sdk\native\jni\include\opencv2.

Where I can get this SurfDescriptorExtractor typedef in open cv android native. Is there any alternative. Please suggest me.

edit retag flag offensive close merge delete

Comments

The nonfree modules are simply not included in the opencv android sdk (probably due to some patent issues). If you google it, you will find ways to simply copy the nonfree modules to the android sdk (or use your head). Btw, using sift/surf on android wont really get you anywhere if you are heading towards a realtime application. Those algorithms are too expensive

Moster gravatar imageMoster ( 2013-08-30 08:59:35 -0600 )edit

Thanks for your comments.

aklenka gravatar imageaklenka ( 2013-08-30 13:43:46 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-08-31 09:34:31 -0600

Nonfree module was excluded from OpenCV4Android SDK due legal issues. You can build it by uself and use in your app, but you will responsible for its usage. I recommend you to contact patent holder before usage some of them.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-08-30 07:20:07 -0600

Seen: 5,811 times

Last updated: Aug 31 '13