in reply to Win32 and OCR via OLE

Have used OmniPage thru next to latest version.

Wish I hadn't.

Getting decent results is generally is about as much work as re-entering the data would have been and no less error-prone.

And why would you want to OCR "MS Office formats" anyway? They're already character data. Worst case, for Word & Excel would be to export to text (and unless you catch Omnipage on sale, there's a subset of MSO available for about the same price.

To extract from the .pdf's, see the various pdf modules.

Replies are listed 'Best First'.
Re^2: Win32 and OCR via OLE
by tmaly (Monk) on Apr 10, 2008 at 13:32 UTC
    I was looking to parse MS outlook attachments that could be .doc, .xls, .pdf and determine via a bayesian classifier what to do with the documents. Since I do not know which of the formats will be in used in the attachments, I was hoping for a general OCR solution that I could use to pull all the text from the documents regardless of it they contained text, binary formats, or image text.

      OCR will NOT help with .doc or .xls. Neither is an image for input to Optical Character Recognition.

      Please read the replies from Corion and Marto as already posted... and see Marto's for .pdf

      And if you're thinking about "pull(ing)...from (unknown) binary formats or image text" you better start thinking about how to deal with malware.

      Do you understand what the letters OCR actually mean? I do not think that you do, when I don't know something I research it. Various people have replied to you explaining essentially what OCR means.

      Obviously there is no 'general ocr solution' to do what you want to do, given that you can't OCR things that are not images. You mean you want to text strip the attachments. You have been given links which discuss the topics of OCRing, using super search will return plenty of resources regards text stripping various types of files.

      Martin
        Martin, I do understand what OCR means. I was using it in the context to refer to pulling text out of non-text PDFs. I was not saying that I wanted to apply it to word documents. However, I was looking for a general application that could OCR the pdfs, but also extract text from the word documents via usage of the office libraries. -Ty