Coder Social home page Coder Social logo

[Bug]: crashes with tesseract 5.4.0 about ocrmypdf HOT 8 CLOSED

mplx avatar mplx commented on September 21, 2024 1
[Bug]: crashes with tesseract 5.4.0

from ocrmypdf.

Comments (8)

jbarlow83 avatar jbarlow83 commented on September 21, 2024 1

This is a tesseract issue - we will need to wait for them resolve it
tesseract-ocr/tesseract#4257

from ocrmypdf.

jbarlow83 avatar jbarlow83 commented on September 21, 2024

Since the issue is with Tesseract itself, downgrading is the only option at the moment

from ocrmypdf.

amitdo avatar amitdo commented on September 21, 2024

The bug is in the the legacy engine.

Since the issue is with Tesseract itself, downgrading is the only option at the moment

It's not the only option, unless ypu want Tesseract to use the legacy engine.

You can bypass this bug by using a model from the tessdata_fast repo or by using oem 1.

from ocrmypdf.

jbarlow83 avatar jbarlow83 commented on September 21, 2024

@amitdo ocrmypdf uses orientation and script detection (osd.traineddata) which currently only has the legacy option even in tessdata_fast. Your workaround will help people looking to get tesseract 5.4.0 working on OCR (without using any feature that requires page orientation detection) but it's not a full solution.

For maintainers looking for a full solution that passes the test suite, unfortunately ocrmypdf with tesseract 5.4.0 is not workable and will have to wait for 5.4.1.

from ocrmypdf.

amitdo avatar amitdo commented on September 21, 2024

Yeah, I forgot about OSD.

from ocrmypdf.

kmille avatar kmille commented on September 21, 2024

I just updated tesseract to version 5.4.1-1 on Arch Linux and the problem is gone.

from ocrmypdf.

mplx avatar mplx commented on September 21, 2024

For's for me aswell... ArchLinux w/ ocrmypdf 16.3.1-1 + tesseract 5.4.1-1

from ocrmypdf.

jbarlow83 avatar jbarlow83 commented on September 21, 2024

In 16.4.0 we refuse to use tesseract 5.4.0. 5.4.1 with any version works.

from ocrmypdf.

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.