Ask Your Question
4

2.4.2 Android - missing nonfree package

asked 2012-07-17 06:01:05 -0600

katrin gravatar image

I updated my app to OpenCV Android 2.4.2 and wanted to use SURF as before in version 2.4.0, but I can't find the required package anymore. Neither can I find the nonfree package within sdk\native\jni\include\opencv2. Are SURF and SIFT moved to another package again or are they completely missing within the new version 2.4.2?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2012-07-17 09:00:14 -0600

Kirill Kornyakov gravatar image

SURF and SIFT are still in the nonfree package, but this package is excluded from OpenCV4Android distribution. The problem is that these algorithms are patented, so you should prefer Orb or FREAK. For those who really need to have SURF we will create an instruction on how to build the nonfree module from OpenCV sources. But this way will be incompatible with Android OpenCV Manager and you can't distribute you application on Google Play Market (technically you can, but you'll meet some difficulties).

So, we suggest to use Orb or FREAK (latter is not available in Java at the moment), because there are no legal issues with them, they are much faster, and it is usually possible to achieve the same quality.

edit flag offensive delete link more

Comments

Thanks for the clarification! Actually I'm trying to use FREAK, but I still need a Feature Detector. Since the demo code for FREAK used SURF (http://code.opencv.org/projects/opencv/repository/entry/trunk/opencv/samples/cpp/freak_demo.cpp) I wanted to try it as well. I have now tested FREAK with a FAST Feature Detector, but my approach is slower than my previous approach with SURF (SURF for both detection & extraction). Don't really now why, I thought FAST+FREAK would be faster. Maybe it's because I'm using BFMatcher for FREAK, I used Flann for SURF. Is it possible to use Flann for FREAK (since is a binary descriptor I thought this would not be possible)?

katrin gravatar imagekatrin ( 2012-07-17 09:22:10 -0600 )edit
1

You should ask your questions in a separate "question". They are good enough for a wider audience :)

Kirill Kornyakov gravatar imageKirill Kornyakov ( 2012-07-18 02:38:01 -0600 )edit
katrin gravatar imagekatrin ( 2012-07-18 05:19:30 -0600 )edit

Tutorial: " For those who really need to have SURF we will create an instruction on how to build the nonfree module "

How does it look with this tutorial, because i would really like to have it.

Thanks for your answer.

Nino gravatar imageNino ( 2013-02-19 08:02:20 -0600 )edit

I would need that tutorial aswell

Szippy gravatar imageSzippy ( 2013-02-21 11:54:56 -0600 )edit

Let's track this request in OpenCV tracker: http://code.opencv.org/issues/2825

Andrey Pavlenko gravatar imageAndrey Pavlenko ( 2013-02-21 13:17:47 -0600 )edit

There is a tutorial about building nonfree module for OpenCV for Android. Version OpenCV 2.4.5. https://sites.google.com/site/wghsite/technical-notes/sift_surf_opencv_android Hope this helps.

lanshan317 gravatar imagelanshan317 ( 2013-05-23 14:07:23 -0600 )edit

Question Tools

Stats

Asked: 2012-07-17 06:01:05 -0600

Seen: 8,973 times

Last updated: Jul 17 '12