4 ms·
I have an interesting take on this. Most of the books I've read, I have a copy of. A while back, I endeavored to cut, scan and OCR them all into my computer. On
by WalterBright 12y ago
I have an interesting take on this. Most of the books I've read, I have a copy of. A while back, I endeavored to cut, scan and OCR them all into my computer. One idea was then I could do a full-text search, limited to what I've already read rather than what google thinks is relevant.
So far, I've found it very handy to find something if I at least remember which book it was in. But I need a program that can extract the OCR'd text from .pdf files - anyone know of a simple one?
(I can do it manually, one at a time, by bringing it up in a pdf reader, but that's too tedious and slow.)
- sixdimensional 12y agoThis is a great idea. Full-text search for "my knowledgebase", books I've read, thing's I've written, etc. is an area with potential that still seems unfulfilled. Some ideas: - Apache PDFBox https://pdfbox.apache.org/ https://pdfbox.apache.org/ - command line: https://pdfbox.apache.org/commandline/#extractText https://pdfbox.apache.org/commandline/#extractText - XPDF has a command line tool you can use in Windows - http://www.foolabs.com/xpdf/ http://www.foolabs.com/xpdf/ - pdftotext - If you're going for accuracy, Tesseract is one of the most accurate https://code.google.com/p/tesseract-ocr/ https://code.google.com/p/tesseract-ocr/ - Apache Tika is often used the way you suggest: http://tika.apache.org/ http://tika.apache.org/
- walterbell 12y agoAbbyy Finereader (paid, Windows) is one of the best OCR programs, most of the books on archive.org are OCR'ed with Abbyy. If the PDFs already have OCR text, calibre (GUI or CLI, Linux or Windows) can convert to .txt and many other formats. The recoll.org search engine will index PDF files that have OCR text.
- WalterBright 12y agoThanks guys, this is great info! (I just tried pdftotext, and it does just what I wanted.)