by ashishb · 1y ago · 0 comments
There are cases where documents contains text with letters that look the same in many font. For example, 0 and O looks identical in many fonts. So if you have a doc/xls/PDF/html then you lose information by converting it into an image.
For cases like serial numbers, not even humans can distinguish 0 vs O (or l vs I) by looking at them.
For that reason, IMO rendering a PDF page as an image is a very reasonable way to extract information out of it.
For the other formats you mentioned, I agree that it is probably better to parse the document instead.
Yeah, but when they do, it makes a difference.
Also, speaking from experience, most invoices do contain actual text.
If the OCR has a problem understanding varying fonts and text, there is zero reason using embeddings instead is immune to this.
Their solution is precisely as subject to ambiguities of text that the comparative OCR solutions are.
1 vs I or 0 vs O are valid issues, but in practice - and there's probably selection bias here - we've seen documents with a ton of diagrams and charts (that are much simpler to deal with as images).