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).
Related
I'm fairly familiar with android application developpement and have created quite a few apps within Android-Studios. Now I'd like to do an app wich can detect a A4 paper in an image and read it's content. Can you name me a couple of libraries/API's? I've checked out OpenCV and Vuforia, but couldn't find something with this particular problem.
Thanks alot!
The best (free) possibility for OCR (Optical Character Recognition) would be Tesseract Engine.
Please note however, that you'll need some background in image processing to get reasonable results.
There are libraries that do the preprocessing for you, but most of them are commercial projects.
I am new in OpenCV, image processing and also in Native language C/C++ for, and I would like to have some guides on where I should focus on in order to complete my task. I am developing an android application that can recognize the bent pins and circle/square the bent pins, for example the face recognition in openCV will "square" the human face once it was detected. The bent pins can be in defected in various different forms. I am using Eclipse ADT. Currently I had downloaded the Face recognition in OpenCV for android and I am analyzing it, and according to what I had discovered is that, it consist of an xml file, where it had been trained and is used for detection by the system. Now my questions are:
How can I train and generate the xml file?
What software should I use in order to train and generate the xml file?
What type of images do I need to retrieve in order to train the system/image requirements (eg, image of the bent pins from multiple angles)?
What is the best algorithm to achieve this?
According to my research I discovered that Face detection recognition is using Haar-like feature. What is the difference of Haar-like feature, cascade classifier and also artificial neural network? I am confused of the difference. Are they the same thing?
Thank you
1) 2) the pc-version of opencv comes with a tool named opencv_traincascade, this is used to generate the haar/hog/lbp xml-cascades off-line. (no, you don't run that kind of task on your smartphone)
3) 4) multiple(hundreds) images from your object, also even more negative (non-pin/background images)
5) haar cascades train on edge features like those:
so, here's the bummer: i seriously doubt, that your 'bent pins' come with enough 'edge features' for this.
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.
My goal is to create a waving flag in Android using OpenGL but I don't have any clue on where to start.
Cloth modeling seems to make the neatest effect but I couldn't find any implementation for Android on the web.
I hope that someone would know some tutorials, resources etc. that could help me solve this problem.
If you know easier/other ways to create a decent looking waving flag, let me know. I'm open for everything.
Thanks in advance!
First result on google
http://code.google.com/p/waving-flag-android/
A good tutorial about cloth simulation is from Jesper Mosegaard http://cg.alexandra.dk/2009/06/02/mosegaards-cloth-simulation-coding-tutorial/
The pioneer work on cloth simulation is from Darwin 3D http://www.darwin3d.com/gdm1999.htm#gdm0599
A open source project in Google Code provides a variety of algorithms http://code.google.com/p/opencloth/
All these works are based on C/C++ which is the natural programming language for OpenGL. As you are working on an Android project, you have to rewrite the algorithms in Java. After you figure out the mechanism, you should be fine. Good luck!
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.