Giter Site home page Giter Site logo

Comments (3)

eihli avatar eihli commented on August 20, 2024

That last line of the error message is informative.

'tesseract', '--psm', '0', '--oem', '0', '/Users/andrewmcfadden/Documents/GitHub/one2many.github.io/image-table-ocr/dance/ga-20190131-001.png', '-'

Try running that command and see if it gives you any more useful info.
tesseract --psm 0 --oem 0 /Users/andrewmcfaddn/Documents/GitHub/one2many.github.io/image-table-ocr/dance/ga20190131-001.png -

Maybe tesseract takes a --verbose flag that will print additional useful information about the error?

Looking at that image of the FirstBank logo... it doesn't look like something this library was written for. I don't think it will parse anything from that as-is. It will require a huge amount of customization for that.

from image-table-ocr.

one2many avatar one2many commented on August 20, 2024

I will try to add the verbose flag and see what happens. The logo is where it gets stuck, but I really don't need it. My end goal is to run this on 60 pdfs of bank statements that are 98% tables. The logo is on the top left of the first page of every document though. I ran this on one pdf and it got stuck on the logo, but if I could ignore it that would be fine.

Attached is sample of one of the tables.
9007-GENERALACCOUNT-20200131-006

Also, have you seen Tabula?

from image-table-ocr.

eihli avatar eihli commented on August 20, 2024

This library will need a lot of customization to work with a table like that. The code looks for vertical and horizontal lines to detect a table. And then when it finds a cell, it expects the cell to contain a single line of text. Your example is incompatible with both of those expectations.

The best I can suggest if you want to use anything from this library is to use it as a reference while writing a lot of custom code.

from image-table-ocr.

Related Issues (18)

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.