Converting OpenCV code from iOS to Android - android

I want to convert the following openCV code(available in iOS) at Matching template imge(scaled) to Main/larger image to Android.
I have tried lot of things, but the opencv library has problem that surf detection is not available in OpenCV's Android Library. For using that they have told to use c++ code and doing some settings. Different sites are saying different settings. As i am totally new to android, i am not getting properly how to set it up. Please can anyone give me reliable and detailed way of doing that. or does anyone know ther other method of doing the same thing that is given in above question.

I have found solution to my question, You can check it out the solution on this post:Object detection with OpenCV Feature Matching with a threshold/similarity score - Java/C++

Related

Need proper demo for face detection using opencv

Hello is there anybody who can help me with the opencv face detection with latest library for android. I already tried many demo from github but i got issues like library libtbt.so not found and app gets crash. If anyone has proper solution please send me link or demo that can run without error or any tutorial that I can follow.
I want for android, i have windows 7 and android studio latest version.
It is my first question so if anythig missing pardon for that
Thank you in advance.
First of all i'll attach a list of links to tutorials and videos i used to develop my opencv face recognition tool, in terms of your problem i think you're missing a key framework, if you follow the link i provided it should work let me know if it does. I know you wanted a demo but the best way to learn this is to follow one of the tutorials i provided.
how to install for mac : https://medium.com/#nuwanprabhath/installing-opencv-in-macos-high-sierra-for-python-3-89c79f0a246a
Tutorials :
https://opencv-python tutroals.readthedocs.io/en/latest/py_tutorials/py_atutorials.html
https://www.youtube.com/watch?v=YY9f-6u2Q_c
https://www.pyimagesearch.com/2018/07/19/opencv-tutorial-a-guide-to-learn-opencv/

How to Implement SmartReply just Like LinkedIn,Gmail, Google Allo in android programatically

After lots of research, find it out that it can be achieve by using TensorFlow SmartReply which will help to predict and give some response based on the input using machine language. But while integrating the same into my own android application, facing issue related to JNI libraries integration.It will be really helpful if someone has any sample or example code in this .
Followed the below link :-
https://github.com/tensorflow/tensorflow/tree/e1ac119417e6301222c2847f5f82e8ff093d7552/tensorflow/contrib/lite/models/smartreply

Developing Face Recognition App

i'm new to developing android apps in general.
I'm trying to create an application that given a certain image it would detect faces and would give me the eye locations and other info.
I've done some research and i found some stuff such as, the android FaceDetector API and OpenCV.
Could anyone give me some advice on how to make an app like this or send me a link with any info related to this, all help would be great!
Thanks, Daniel.
I have worked with Face recognition for a while.
If you want to use OpenCV you could do a better effort searching in SO and you can found things like this one.
The best one for me is the SDK provide by lockheed martin... but it's too expensive :S for a single person.
Edited
"Face detection and face recognition are different things ;) Face detection tells you where is the face and face recognition tells you who's the owner of the face"
If you choose OpenCV, you can find full doc in official page.
I'm going to give you a overview :
You can use OpenCV in your app using "OpenCV Manager" or with "Static Initialization on OpenCV Android".
About the first one:
OpenCV Manager is an Android service targeted to manage OpenCV library binaries on end users devices. It allows sharing the OpenCV dynamic libraries between applications on the same device. The Manager provides the following benefits:
Less memory usage. All apps use the same binaries from service and do not keep native libs inside themselves;
Hardware specific optimizations for all supported platforms;
Trusted OpenCV library source. All packages with OpenCV are published on Google Play market;
Regular updates and bug fixes;
About the second one:
A complete tutorial using eclipse.
You might try the new Android face API. See the tutorial here about how to detect faces and facial landmarks:
https://developers.google.com/vision/detect-faces-tutorial
I explain how to do it in this article. I used a TensorFlow Lite with a MobileFaceNet implementation, achieving very accurate results and with surprisingly high speed.
You'll find the source code and an APK in this repo

Cannot implement SURF in Android using JavaCV

I am trying to develop a simple Android app that will get the current frame from the camera on the phone using PreviewCallback. Then perform SURF feature detection and extraction using the ObjectFinder provided in the JavaCV project. However I keep getting an Exception. The same program works on my PC.
This is probably due to SURF being a patented algorithm and this is causing issues.
Thus can somebody provide me an alternative for this in JavaCV. Any help would be appreciated. Thank you.
Your assumptions are correct. SURF/SIFT being a patented one, it has been removed from the latest opencv SDK. As an alternative you can try to use the androidobjectrecognition methods used in the same. You can checkout its source from: https://code.google.com/p/androidobjectrecognition/source/checkout
I tried use ObjectFinder too. But after unsuccessful attempts I found this code. After little corrective it work for me in android.
Basil is right, but there are many new features to find images (freak, orb, brisk...).

Facial features detection using OpenCV Android

I need to develop a facial features detection application by which I could be able to detect eyes,nose,lips,head along with its face. For this I opted for OpenCV. I had gone through many tutorials and also sample projects. There I could see the usage of haarcascade files through which I could detect the facial features while recording a video. As I know the location of haar cascade file.
But no site could tell me the complete implementation of haarcascade files in OpenCV android project.
Kindly provide me some sites regarding or give me some brief knowledge regarding the same.
That is a good approach for detecting faces using openCV. Since you are using android, you will probably not find code written in java but you can always modal it to work on android too. This is what I believe is the best approach. http://docs.opencv.org/master/d7/d8b/tutorial_py_face_detection.html#gsc.tab=0
http://docs.opencv.org/modules/contrib/doc/facerec/facerec_tutorial.html
This is another detailed use of different approaches using OpenCV.
Hope it helps, if you need help in changing the code you have to post what you've done so far and then I would be happy to help! Cheers!

Categories

Resources