Detecting edges of image in android using OpenCV? - android

In my application , i need to capture image(coins on table ) and then detect its edges. i got to know that OpenCV works good for this scenerio. I ported OpenCV on android, installed sample CVCamera is working fine.But i didnt find how to call generic methods ? can any one tell me how to accomplish my task using OpenCV ?
Thank u,
Srinivas

There are lots of tutorials and samples on the web devoted to edge detection with opencv. For example here you will find one which uses opencv/canny algorithm. And here you will find the opencv documentation on the topic.
I'm assuming you are using this port of opencv to Android: http://opencv.willowgarage.com/wiki/AndroidExperimental . You will find the android-experimental/opencv/android/apps/OpenCV_SAMPLE/ the sample of canny algorithm on android.

Related

Import MATLAB algorithm into an Android device

First, sorry for my poor english. Ok, I would like to implement an algorithm into an android device. My goal is to detect an hexagon pattern in an image/photo which is take directly on the android.
I've seen that it seems to be more easily to develop those kind of algorithm on Matlab which I think is appropriate to this image processing.
So here comes my question : If I got a Matlab code which can recognize my patterns in a photo, can I import them into my android device application ?
I've heard about .jar importation and openCV (Hough Transform), i've try the last one and it seems easy to recognize circle or square but I need to recognize more complicated pattern as hexagon are (?).
Thank you in advance,
J.
You will need to rewrite the matlab code (either to Java or to C++ native code).

How to integrate the metaio + Open CV for android application?

Hi i'm trying to create a application related to the Augmented Reality (AR) and was able to configure my application with Metaio SDK and OpenCV library successfully in two separate application.
but the thing is i want to use both the library of OpenCV and Metaio together into one application. so can any one help me with its integration.
In my single application I want to use OpenCV for markerless detection and MetaIO for 3D Model rendering.
Metaio:http://www.metaio.com/
OpenCV:http://opencv.org/
=====>
I'm using opencv to detect shapes in a camera image and want to display 3D objects rendered by metaio on those shapes. Similar to marker tracking.
Metaio and openCV, each have their own cameraview. I have disabled cameraview of openCV.
I want to convert an ImageStruct object received in onNewCameraFrame() method into an OpenCV Mat in Android. For this, I have registered MetaioSDKCallback to continuously receive camera frame.
But onSDKReady() and onNewCameraFrame() method of this callback is not being called,though I have added 'metaioSDK.requestCameraImage()'.
This where i'm stuck with it.
I suggest you to integrate the sdk of Opencv4android, and to see the samples come with, they are very good examples to teach you how to use the camera easily
For your objective probably face detection example is good to check.
Here is the tuto that help you to install and configure opencv SDK
For AR I can't help you so much, but have look at this discussion, it could be helpful.

identifying eyes from images

i am upto recognizing the eye in an image (which is opened).The image is taken by the camera Activity in a tablet.By webservice i could connect it to postgres.But i dont know how i should consider those images to identify the eyes.when i searched i came across OpenCV but im new to it..is there any particular algorithm (name) to identify the eye..when i searched they said its possible in android with the help of opencv by simply importing some packages..but i dont know how to start and from where..can any one plz help me..Something supporting android will be helpful..
If my understanding is correct, there are few differences between the CV4Android library and the OpenCV C++ library. In addition, C++ code can be used by using the Native Development Kit for Android.
With that being said, OpenCV has a C++ tutorial that uses Cascade Classifiers to identify an individual's face and eyes and places a circle around each one of the eyes and a larger circle around the head.
The tutorial can be found here.
Edit: If you're looking for more information on the CV4Android and OpenCV C++ libraries, I'd recommend reading the reply to this question. Hope that helps.

How to detect integer values from the Image in android using image processing?

hai i need to find the integer values from the image using image processing i go through some image processing alogorith like edge dectection but did not get a solution can any one show some example of dectecting the integer values from a image ?
Well for image recognition and stuff like that in general we use Neural Networks. Implementing a basic neural network is not hard, but there are countless implementations out there in the wild (native C/C++ and Java as well).
How ever I would strongly recommend to use the OpenCV library which is somehow complex but would allow you to do far more advance things.
Note: there is a port for Android and you can find it here: OpenCV 4 Android

OpenCV eye tracking on Android

I'm looking to do basic eye tracking in android using the OpenCV api. I've found that there seem to be two ways to use opencv in Andriod, either by using their c++ wrapper or by using JavaCV api. I'm willing to do either but I'm looking for some idea or sample code as to how i would track basic eye movement with either platform. I'm leaning toward the JavaCV api because it looks easier to use but I could really use some sort of tutorial on the basics of using it with android.
Assuming you already looked into JNI (Java Native interface), JavaCV is exactly the same thing as OpenCV. As per eye tracking, you will need to get the live video feed from the camera and locate the participant's eyes in the frames using template matching and blink detection.
You will just have to make your View implements Camera.PreviewCallback in order to get a hold on the camera feed.
The OpenCV Site on eye tracking provides some sample codes that will help you track the eyes.
If you want to see an example of opencv on android, click on this open source code.
Hope it helps

Categories

Resources