Ask Your Question
1

A problem in OpenCV with Android using SURF

asked 2013-06-10 21:50:53 -0600

RuifDu gravatar image

updated 2013-06-10 21:52:03 -0600

When I'm using SURF in Android, have created a FeatureDetector with SURF by

m_detector = FeatureDetector.create(FeatureDetector.SURF);

but when using the method detect, an error ocures, while use FAST instead of SURF, the error disappers. Another situation happens when I use SURF to initialize a DescriptorExtractor.

Pleasse tell me how can I use SURF in Android with the original OpenCV liberary.

Thanks!

edit retag flag offensive close merge delete

Comments

can you give some more code, and what exactly the error on logcat is? this way nobody can help you.

MysticBE gravatar imageMysticBE ( 2013-06-18 19:24:34 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
3

answered 2013-07-31 00:55:34 -0600

lanshan317 gravatar image

SURF and SIFT are patented algorithms. Therefore, they are not directly included in the OpenCV4Android library. You can find those algorithms from nonfree module from the full package of OpenCV (not android version).

One way to use SURF and SIFT without re-compiling the whole OpenCV library for Android platform is to build the nonfree module for Android and use it along with the OpenCV4Android library. Here is a tutorial showing how to do it: https://sites.google.com/site/wghsite/technical-notes/sift_surf_opencv_android. You can follow the tutorial to achieve your goal, if I understand your goal correctly. Hope this will help.

edit flag offensive delete link more

Comments

Does anyone have some precompiled .so files we could use ?

Taiko gravatar imageTaiko ( 2015-12-14 02:52:10 -0600 )edit

Question Tools

Stats

Asked: 2013-06-10 21:50:53 -0600

Seen: 7,251 times

Last updated: Jul 31 '13