Code Monkey home page Code Monkey logo

Comments (12)

ductranit avatar ductranit commented on May 25, 2024

You can improve quality by set OEM mode like this (make sure you copying all train data files into tessdata folder):
baseApi.init(tessDataPath, "eng", TessBaseAPI.OEM_TESSERACT_CUBE_COMBINED);

And there are many preprocessing image methods, grayscale is just one of them.Take a look at this http://mitako.eu/OcrTips and http://www.cra.org/Activities/craw_archive/dmp/awards/2008/Elmore/melmore_dmp.pdf

from tess-two.

Annyjain29 avatar Annyjain29 commented on May 25, 2024

Hi.. thank you for reply
.I m already tryied what you said. but when i am set TessBaseAPI.OEM_TESSERACT_CUBE_COMBINED mode it raise following error...
Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 5097 (roid.ocr.simple)
what is wrong in it..?

from tess-two.

ductranit avatar ductranit commented on May 25, 2024

As I said, make sure you copying all train data files with your language into tessdata folder (for example, with the english language, there are many files eng.*) and it should be placed in phone or emulator sdcard or internal storage, download from here https://code.google.com/p/tesseract-ocr/downloads/list

from tess-two.

Annyjain29 avatar Annyjain29 commented on May 25, 2024

hey dactranit..
I alreadt done.
In my project directory having folder with tessdata and in that eng.traindata file exixt

from tess-two.

Annyjain29 avatar Annyjain29 commented on May 25, 2024

anyother train data files requir..?

from tess-two.

ductranit avatar ductranit commented on May 25, 2024

Not only eng.traindata, I said all eng.* files, so they are eng.cube.bigrams, eng.cube.fold ... (you should copy ALL files in this package https://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.eng.tar.gz) please PUT THEM INTO PHONE OR EMULATOR 's STORAGE OR SDCARD, INSTEAD OF PROJECT DIRECTORY. If still not work, please provide your code and a screenshot of file explorer in your device that contain these files.

from tess-two.

Annyjain29 avatar Annyjain29 commented on May 25, 2024

Hi...I am done as u said and it work fine but i am not get the best accuracy as it commented...
i am get same result as the "OEM_TESSERACT_ONLY" gives me

from tess-two.

ductranit avatar ductranit commented on May 25, 2024

from tess-two.

Annyjain29 avatar Annyjain29 commented on May 25, 2024

Hii ..Thank you for reply..
One more Question i would like to ask you...
What is the Advantage if we disable dictionary..?

Waiting for your reply..

from tess-two.

ductranit avatar ductranit commented on May 25, 2024

Read this https://groups.google.com/forum/#!topic/tesseract-ocr/4XHtbqaKAmQ
By using dictionary, tesseract indicates whether to correct the word or not, but it doesn't make sure work as aspect. When disable dictionary, you can improve the performance of OCR process, make it faster, but the result quality may be poor.

from tess-two.

Annyjain29 avatar Annyjain29 commented on May 25, 2024

Hey which PSM mode is best to use..?

from tess-two.

rmtheis avatar rmtheis commented on May 25, 2024

This is a question and not really an issue.

Also see:
https://github.com/renard314/textfairy
https://github.com/artetxem/mitzuli

from tess-two.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.