News for hackers. Stuff that matters.
Re:Show HN: LLM-aided OCR – Correcting Tesseract OCR errors ... by sumedh on Friday August 09, 2024 @08:01PM (#41206397)
> Flash 1.5 accepts whole PDFs just fine.

Sometimes models cannot extract the text from the pdf in that case you need to use give the image of the page.

Re:Show HN: LLM-aided OCR – Correcting Tesseract OCR errors ... by ajcp on Sunday August 11, 2024 @10:39AM (#41216497)
Ah, yes, I've found pre-processing the PDFs to sanitize against things like that has been helpful. That's a whole other process though.
Re:Show HN: LLM-aided OCR – Correcting Tesseract OCR errors ... by sumedh on Sunday August 11, 2024 @08:46PM (#41220293)
What steps does that involve?
Re:Show HN: LLM-aided OCR – Correcting Tesseract OCR errors ... by ajcp on Monday August 12, 2024 @10:43AM (#41224959)
Essentially what you're already doing, with one more step :) Get PDF > convert (read: rebuild) to TIFF > convert to PDF.

In my case all documents to be sent to the LLM (PDFs/Images/emails/etc) are already stagged in a file repository as part of a standard storage process. This entails every document being converted into a TIFF (read: rebuilt cleanly) for storage, and then into PDF upon export. This ensures that all docs are correct and don't maintain whatever went into originally creating them. I've found any number of "PDF" documents are not PDF, while others try and enforce some "protection" that makes the LLM not like the DOCS

Re:Show HN: LLM-aided OCR – Correcting Tesseract OCR errors ... by sumedh on Friday August 16, 2024 @08:30PM (#41271504)
Interesting, I will try the TIFF approach for some of the problems Pdfs I have.

Thanks