Live data from Hacker News

Amazon Textract – Extract text and data from virtually any document

aws.amazon.com

41–50 of 74 posts

Re: Amazon Textract – Extract text and data from virtually any document

#44
post #24

If this can get me tables out of pdf's generated by crystal reports it would be a godsend for testing. This has been a nightmare to try and solve, the best option so far has been adobe cloud but they don't offer an API for that. I'm excited to try it out.

Have you tried e.g. https://tabula.technology , https://pdftables.com , https://pypi.org/project/Camelot/ ?

[deleted]

Re: Amazon Textract – Extract text and data from virtually any document

#45

Earlier quoted context omitted.

How about https://ocr.space/tablerecognition It returns table data line by line.

handled the non-printed whitespace but butchered the multi- line table headers, so re-building the headers is rough as it is line by line and you need to know what words go together and you have lost the structure.

Can you send me a copy of what you are trying to extract? We use proprietary stuff (we're in the business of extracting data and performing analysis on invoices for waste, recycling, cellular, etc... stuff that gets "lost" in the AP department.

Happy to see if our tools can help. I've tried everything on the market - DocParser, MediusFlow, KOFAX, Ephesoft, etc... none work well enough in my opinion.

Re: Amazon Textract – Extract text and data from virtually any document

#46
post #24

If this can get me tables out of pdf's generated by crystal reports it would be a godsend for testing. This has been a nightmare to try and solve, the best option so far has been adobe cloud but they don't offer an API for that. I'm excited to try it out.

Have you tried e.g. https://tabula.technology , https://pdftables.com , https://pypi.org/project/Camelot/ ?

Rather than the Camelot link you provided, I think you meant Excalibur? https://github.com/camelot-dev/excalibur

Re: Amazon Textract – Extract text and data from virtually any document

#47

I have a personal flow using tesseract to scan docs into searchable PDFs, but it’s not that accurate. One of the main problems is that some (now most?) of the documents are in German since I live in Germany, but some are in English. There’s a way to choose the language but nothing to auto detect as far as I’m aware. I was hoping for some cloud AI service with superior OCR and simple integration or CLI (push a PDF and…

In tesseract, if you want to recognize both English and German you can use option -l deu+eng.

If you want to perform language detection you can do the following:

a. Invoke tesseract with "-l eng".

b. Pass the output text to langdetect [1]. It is a port of Google's language detection library to Python which will give you the probabilities of the languages for a given text.

c. Invoke tesseract with "-l langdetect_output"

Note that langdetect generates 2 character codes (ISO 639-1) whereas tesseract expects 3 character codes (ISO 639-2).

[1]: https://github.com/Mimino666/langdetect

Re: Amazon Textract – Extract text and data from virtually any document

#48
post #15

Earlier quoted context omitted.

This is an Evernote feature. Dropbox also launched this feature.

Evernote is an interesting case. They store every word that MAY be in the scanned document. So their OCR engine will find a lot of legitimate words, but it will also find a lot of words that don't sense too. When putting in a term for searching, it looks at the entire index (both legit words and the garbage) and returns you the documents that match. I think it's quite clever. Bear in mind that this feature was many y…

Yeah, Evernote's OCR engine will generate possible candidates for every given word and will sort them internally by confidence score.

Screenshot: https://s24953.pcdn.co/blog/wp-content/uploads/2018/02/longh...

Since it's not aimed for transcription (user doesn't know what he's looking for) but for retrieval (user knows what he's looking for), it can get away with mistakes.

References:

https://evernote.com/blog/how-evernotes-image-recognition-wo...

https://help.evernote.com/hc/en-us/articles/208314518-How-Ev...

https://evernote.com/blog/evernote-indexing-system/

Re: Amazon Textract – Extract text and data from virtually any document

#49
post #39
post #15

Earlier quoted context omitted.

Evernote is an interesting case. They store every word that MAY be in the scanned document. So their OCR engine will find a lot of legitimate words, but it will also find a lot of words that don't sense too. When putting in a term for searching, it looks at the entire index (both legit words and the garbage) and returns you the documents that match. I think it's quite clever. Bear in mind that this feature was many y…

Yep it's quite clever for searching for things, much less useful for doing something based on the recognized text.

OneNote can do transcription (copy text from image).

Re: Amazon Textract – Extract text and data from virtually any document

#50
post #13

Any idea if this can support handwriting even with a reduced confidence? Support for non-English languages?

According to the Textract preview sign up form there is the following features: - Printed text detection - Handwritten text detection - Key-Value detection - Table detection - Checkbox detection - Other optical marks (e.g. barcode, QR code) There's a decent possibility it has handwriting recognition. Not sure about the non-English languages though.

The docs page [1] (subject to change) mentions:

Do you support handwriting? – We do not support handwriting extraction.

[1]: https://docs.aws.amazon.com/textract/latest/dg/how-it-works-...

Post reply on HN