GithubHelp home page GithubHelp logo

how to manually config language file if I don't have write access to C:\Program Files\Tesseract-OCR\tessdata folder? about vietocr3 HOT 6 CLOSED

leolle avatar leolle commented on July 2, 2024
how to manually config language file if I don't have write access to C:\Program Files\Tesseract-OCR\tessdata folder?

from vietocr3.

Comments (6)

nguyenq avatar nguyenq commented on July 2, 2024

You can set the environment variable TESSDATA_PREFIX to the path to tessdata.

http://vietocr.sourceforge.net/usage.html

from vietocr3.

leolle avatar leolle commented on July 2, 2024

Thank you for your response, what if I can't modify environment variable and I can't copy any files to c:\Program Files (x86)\Tesseract-OCR\tessdata\ either?
Are there any other methods?

from vietocr3.

nguyenq avatar nguyenq commented on July 2, 2024

You should be able to set the environment variable in a command line and run the program from there. Or you can put it in a .bat file to launch the program with it.

SET TESSDATA_PREFIX=C:\Temp\tessdata

from vietocr3.

leolle avatar leolle commented on July 2, 2024

You should be able to set the environment variable in a command line and run the program from there. Or you can put it in a .bat file to launch the program with it.

SET TESSDATA_PREFIX=C:\Temp\tessdata

Hi, I set my .bat file like this.

set TESSDATA_PREFIX=c:\Users\Z\Downloads\VietOCR3\
start javaw -Xms128m -Xmx2048m -jar VietOCR.jar

My Tesseract.exe version is 3.2.0.0
I download the version 3 language data, it can successfully OCR Vietnamese, except Chinese(result is retangles).
Do you know the reason?
Thank you.

from vietocr3.

nguyenq avatar nguyenq commented on July 2, 2024

Rectangles are indication of the selected font not supporting display of the desired characters. You need to select a Unicode font that contains Chinese glyphs -- Arial Unicode MS, for example.

from vietocr3.

leolle avatar leolle commented on July 2, 2024

Rectangles are indication of the selected font not supporting display of the desired characters. You need to select a Unicode font that contains Chinese glyphs -- Arial Unicode MS, for example.

Thank you, the problem is solved by changing the font of VietOCR to my local language.

from vietocr3.

Related Issues (17)

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.