Comments (3)
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.
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.
Also, have you seen Tabula?
from image-table-ocr.
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)
- End to End Instruction HOT 6
- No way to get hocr of the image with the table_ocr library HOT 2
- Merging columns are not able to be detected HOT 1
- comment HOT 2
- UnicodeEncodeError: 'ascii' codec can't encode character '\u2019' in position 15: ordinal not in range(128) HOT 2
- Traineddata path issue on Windows 10. HOT 8
- Can I use script for local files? HOT 3
- Tessdata access error under Windows HOT 3
- **比,捐助的谁,有脑子不? HOT 1
- ,
- extract table that spend across pages HOT 1
- Version of the external requierements HOT 6
- Error opening data file /usr/share/tessdata/table-ocr.traineddata HOT 5
- ModuleNotFoundError: No module named 'table_ocr' (windows/mac) HOT 2
- Running issue with simple.png exemple under Win 10 HOT 4
- I can't run with any URL HOT 9
- unable to run the code HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from image-table-ocr.