This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Where do I start learning about image processing and object recognition?
Is there any best way for implemeting Object Recognition in android?
I tried to implement object recognition(Face tracking) in my project using OpenCV library, But I have a problem with openCV when I run this application on my device it require to install OpenCV Manager in your device.
I just wanted to know is there any way to do object recognition without install any external application or supporting file in device.
Or you could try the FaceDetector class. Its available since API Level 1.
Try attach native libraries for OpenCV to your project and use OpenCVLoader.initDebug(); to initialization.
Related
Is it possible to scan a passport image using mobile camera and save his details and later detect that person using an Android mobile camera and fetch his details ?(Face detection)
I'd suggest you to use OpenCV Recognition API.
This API can let you save face data of a person and then use it to match with the new face data that you can get.
There are two ways to go about it
Use OpenCV for Android
Use JavaCV
OpenCV for Android is more fully supported than JavaCV. Follow Google's instructions to install Eclipse, the Android SDK and NDK (don't forget the NDK!)
Afterwards, follow this tutorial to install openCV. Try out the sample applications.
Alternatively, you can try using JavaCV instead of OpenCV for Android. This means you won't need to setup the Android NDK. It also means you won't need to write any C++. I didn't try this. But I suspect it is easier.
The downside is: it doesn't support everything OpenCV does.
So I'm trying to work on pure native android application as i need the performance of C/C++. I want to access the camera in a NativeActivity, grab the frames and process them using OpenCV and custom library. I have found multiple answers for using the new JavaCameraView with the cvCameraViewListener2 but in my opinion doing a JNI call to C++ everytime is completely unnecessary and time consuming - and a lot of the forums even post that JNI are expensive!
So my question is if there is either a way to integrate OpenCV in Android SDK Version 23 (6.0 Marshmellow) or another way of accessing the camera natively as i did not have any success finding an alternative. I am running android 6.0.1 on a Samsung Galaxy S7.
Thanks for your help in advance!
so incase anyone was wondering how i solved it...upgrade to Android 7 was necessary. Android 7 introduced NdkCamera headers as #y30 has answered in this post.
I wanted to develop a face recognition app in android. While searching, all i come up with is, the Opencv method, which i think is using C or C++. Can someone post the code or method for android? I am a newbie, so trying new stuff. Thanks!
OpenCV indeed uses C and C++ (and also Python), however you can try and use a java wrapper for the opencv library. Here is a nice wrapper.
If you have a newer phone/tablet, you can use the face recognition API in Android 14+. Check out Camera.Face and Camera.FaceDetectionListener
Also make sure you call: getMaxNumDetectedFaces to make sure you device supports the API.
This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Creating a product SDK: How do I add a native lib (.SO) and a jar with the SDK I am creating?
I'm trying to use com.android.SystemClock in an app, which calls a native method. I need to load the library that this native method belongs to (i.e. System.loadLibrary(...)). The method is defined in the file: frameworks/base/core/jni/android_os_SystemClock.cpp. How do I figure out which library this belongs to and load it as well?
Inspect the make files and find out what libs it builds. Look for LOCAL_MODULE. That said, it is probably in libandroid_runtime.so.
And then again, if it is not part of the public SDK, you shouldn't be using it. It may change, break, not work on some devices, etc.
This question already has answers here:
Closed 12 years ago.
Possible Duplicate:
moving to android from j2me
shall we reuse the j2me source code for android application.i have the j2me source code.is this easy to convert the j2me code to android code
Hi You can fed your J2ME code and get android apk
Refer this url
http://www.netmite.com/android/srv/2.0/getapk.php
See this for an answer: Android and J2ME
There also exists automatic conversion service - http://upontek.com/J2MEtoAndroidServices.php you may want to try