Code Monkey home page Code Monkey logo

Comments (5)

vijayrajasekaran avatar vijayrajasekaran commented on May 30, 2024

Use the generated trained data from the data directory data/digitsmodel.traineddata

from tesstrain.

wrznr avatar wrznr commented on May 30, 2024

@vijayrajasekaran Thank you very much for your hint! @kiransab Still an issue?

from tesstrain.

canyilmaz90 avatar canyilmaz90 commented on May 30, 2024

@wrznr @kiransab I have the same problem, did you manage to find what the solution is? At the end of the training, output was something like that:

2 Percent improvement time=975, best error was 3.143 @ 5376
At iteration 6351/10000/10000, Mean rms=0.492%, delta=0.284%, char train=1.013%, word train=3.54%, skip ratio=0%,  New best char error = 1.013 wrote best model:data/checkpoints/pts1.013_6351.checkpoint wrote checkpoint.

Finished! Error rate = 1.013
lstmtraining \
--stop_training \
--continue_from data/checkpoints/pts_checkpoint \
--traineddata data/pts/pts.traineddata \
--model_output data/pts.traineddata
Loaded file data/checkpoints/pts_checkpoint, unpacking...

I have tried both data/pts.traineddata and data/pts/pts.traineddata, but got the same output:

TesseractError: (1, "Failed to load any lstm-specific dictionaries for lang pts!! Failed loading language 'pts' Tesseract couldn't load any languages! Could not initialize tesseract.")

I'm using it with pytesseract and other .traineddata files work well for the same code.

from tesstrain.

canyilmaz90 avatar canyilmaz90 commented on May 30, 2024

Mates, I found what the issue is for me. I was using tesseract in "--oem 2 (legacy+lstm)" mode, but realized that the code in this repo cannot produce ".box" files (it produces, but only emty files), so it doesn't work for legacy mode. It can work only in "--oem 1 (only lstm)" mode.

from tesstrain.

wrznr avatar wrznr commented on May 30, 2024

Many thanks for your helpful solution!

from tesstrain.

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.