You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@tika.apache.org by Peter Kronenberg <pe...@torch.ai> on 2021/01/11 15:36:54 UTC

OCR of other than PDF files

For other than PDF and Image files (e.g., PNG, JPEG), is OCR processing always applied, (assuming EnableImageProcessing=TRUE).  For example, DOC, DOCX and other Office formats, I get both extracted text and OCRed images.  Is this true for any files like that (can't think of any other examples offhand that might have embedded images)

Re: OCR of other than PDF files

Posted by Tim Allison <ta...@apache.org>.
Yes.  Any complex file format that might contain an embedded image: html,
rtf, email, pst...anything.

When Tesseract was added to Tika, the idea was that if the application is
on the user's path, then Tika should call it on everything.

PDFs were something different though because of the potential DoS with
running ocr on inline images (e.g. thousands of inline images in a single
page).  So, we wound up with what we have now.



On Mon, Jan 11, 2021 at 10:37 AM Peter Kronenberg <pe...@torch.ai>
wrote:

> For other than PDF and Image files (e.g., PNG, JPEG), is OCR processing
> always applied, (assuming EnableImageProcessing=TRUE).  For example, DOC,
> DOCX and other Office formats, I get both extracted text and OCRed images.
> Is this true for any files like that (can’t think of any other examples
> offhand that might have embedded images)
>