非自由(SIFT,SURF)使用Android中使用Java [英] nonfree (SIFT, SURF) usage in android with java

查看:580
本文介绍了非自由(SIFT,SURF)使用Android中使用Java的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有非自由methdos使用android系统的麻烦。 SIFT和SURF方法不包括在OpenCV中,Android的2.4.8。它们需要被单独遵守。

I am having trouble with nonfree methdos usage in android. SIFT and SURF methods are not included in opencv-android-2.4.8. They are needed to be complied seperately.

https://sites.google.com/site/wghsite/technical-notes/sift_surf_opencv_android

这是有关非自由模块编译主教程。但是,不包括在JNI部分的Java的用户。我寻觅了如何使用编译的.so库,但我无法实现的。

This is the main tutorial about nonfree module compilation. However, the jni part for java users are not included. I have searched how to use compiled .so libraries but I could not achieve.

我不知道,有人可以共享JNI一部分非自由的模块或为其详细解释,因为我的工作在这个问题上超过一个星期,我不能这样做。

I wonder that someone can share the jni part for nonfree modules or detailed explanation for it, because I work on that issue over a week and I could not do it.

感谢。

推荐答案

假设你已经得到了OpenCV的4机器人工作在Android设备上;

Assuming that you've already gotten OpenCV 4 Android to work on your Android device;

1)我把libnonfree.so,libopencv_java.so和libgnustl_shared.so(不知道是否需要的最后一个)在正确的文件夹为您的平台,在我的情况jniLibs / armeabi-V7A。已编译的版本可以在这里找到demo文件夹; https://github.com/bkornel/opencv_android_nonfree

1) I placed libnonfree.so, libopencv_java.so and libgnustl_shared.so (not sure if the last one is needed) in the correct folder for your platform, in my case jniLibs/armeabi-v7a. Already compiled version can be find in the demo folder here; https://github.com/bkornel/opencv_android_nonfree

2)请确保您加载这两个库。

2) Make sure you load both libraries.

static {
    System.loadLibrary("opencv_java");
    System.loadLibrary("nonfree");
}

这是被要求,以便为这一切为我工作。

This was all that was required in order for it to work for me.

这篇关于非自由(SIFT,SURF)使用Android中使用Java的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆