Recently I made a simple Tesseract app with tess-two for android.
But the numbers I get from the image is terrible and I would need some help with making traineddata for android. Or if possible are there a good traineddata for numbers that I can download ?
I believe looking at these two links are worth the merit and that they will certainly bring you closer to an answer. Additionally I do not believe that there is any trainingdata particularly for numbers floating around online somewhere (As I have not found them myself). The links:
https://groups.google.com/forum/#!topic/tesseract-ocr/zOPKly6ymbA
https://code.google.com/p/tesseract-ocr/wiki/FAQ#How_do_I_recognize_only_digits
and this link especially
Training Tesseract on Android
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'm working on android application and it should allow users to take photos using camera and the application reads the text and numbers in the photo.
I don't know where to start from android studio. is there any good suggestion on github that could help me???
thanks in advance.
As others said OpenCV or OCR is the way to go.
Google maintains one OCR library called as "Tesseract" (reminds me of Avengers :P).
To make the job little easier there is a fork of Tesseract called as Tess-Two
It combines some other useful tools like Leptonica (image processing library). Build instructions are given on the Readme file.
To get started you can check out very easy to use OCR library
Easy OCR Library Android which uses Tess-Two under the hood.
Again usage instructions are in the Readme file. It is already built so you don't need to build Tess-Two.
You can try to use OpenCV library. Its abbreviature is Open Computer Vision Library. It has a reputation similar to OpenGL. There must be articles about yor issue in which library is ised. It can be linked static or dynamic using runtime application called OpenCV Manager (available in Google Play). You can use it both in Java and C++ code. Hope, it helps
PS i have an own example of it use.
https://github.com/androidovshchik/ProhibitingSignDetector
i could give suggest about how i would do that if i needed to .
first of all you need to photo the picture only black and white .
then cheack the min black pixels in row that will define a letter .(you dont want any shadow to recognize as potential letter.
try and learn progress (any camera have diffrent resulution so it need to be some % of the picture row pixels.)
after that evrey letter have diffrent shape so you need to do for loop 5 times in diffrent angel until you get to the third gap of black rows.
after that some huge switch and if to get to the right letter need to do big research about the gap inside the letter proportion.
to have a little dataBase could help if you wanted to get more then one font .
again i not sure its the right way but that what i would do.
have fun :)
You may try to find some Optical Character Recognition (OCR) library for Java
Check Java OCR, tess-two, Aprise. And explore stackoverflow searching other OCR solutions.
Implementing your own OCR lib may be very difficult so think is it really necessary for your task.
Recently, I've succeeded in creating a simple OCR android app. However, the problem is that the numbers are not read accurately. I've googled on training data but I find it hard to understand.
I want to know how will I be able to make a trained data for android in windows ? Is there a simple way to improve the accuracy for reading digits from a image ? What exactly is a traineddata ? Sorry for a novice question, but I can't clearly grasp it.
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.
I want to develop games for Android.
What are the best ways to do 2D games?
Are there some good resources on developing simple games for someone new to Android?
NOTICE : I suggest to check out other answers with good examples. I have requested to unaccept this answer and accept https://stackoverflow.com/a/8322784/753603 answer
Well it all depends where you stand in matter of Android platform and knowledge of how it works?
Beginner
Than I would suggest start writing simple apps to add some GUI background images, and get familiar with lots of different data structures and how to deal with them. Read about background task execution such as AsyncTask.
Intermediate
Explore different Graphics engines for Android, I would suggest
http://www.andengine.org/
ANdEngine is game engine for android platform, It has lots of built in functionality which you can use for making games. Find tutorials on google there are lot lot lot and lot...and while I am writing this, some generous people are writing one for us :)
Expert in making game on other platform
Than also I would suggest google tutorials like this one,
http://www.codeproject.com/KB/android/androidBallGame.aspx
Again there are heaps of them. :)
Cheers enjoy!
You can start by reading the Android documentation about Graphics. After that, you can try numerous tutorials and sample codes in the Resources section. There are sub-sections available for you to learn from the sample codes:
JetBoy
http://developer.android.com/resources/samples/JetBoy/index.html
Lunar Lander http://developer.android.com/resources/samples/LunarLander/index.html
TicTacToe http://developer.android.com/resources/samples/TicTacToeMain/index.html
and so on.
Working link for donut-release2 / samples
Pretty Good documentation on How do I get started making Android games ,