You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Tim Allison (JIRA)" <ji...@apache.org> on 2016/11/10 13:42:58 UTC
[jira] [Comment Edited] (TIKA-2175) Enable extraction of inlined
jp2/jpx from PDF
[ https://issues.apache.org/jira/browse/TIKA-2175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15654065#comment-15654065 ]
Tim Allison edited comment on TIKA-2175 at 11/10/16 1:42 PM:
-------------------------------------------------------------
After I made the change recommended by [~tilman], I'm able to run OCR via extraction of the inline jpx on [this file|https://t.co/yx3GRe2e6w] without the bridge classes.
Can you try trunk against your test file(s)? My "test" with the linked file renamed to {{testOCR_jp2.pdf}} looked like this:
{noformat}
@Test
public void testOneOff() throws Exception {
ParseContext context = new ParseContext();
PDFParserConfig parserConfig = new PDFParserConfig();
parserConfig.setExtractInlineImages(true);
context.set(PDFParserConfig.class, parserConfig);
debug(getRecursiveMetadata("testOCR_jp2.pdf", context));
}
{noformat}
Or, are the bridge classes necessary for JBIG2, but jpx works ok for you?
was (Author: tallison@mitre.org):
After I made the change recommended by [~tilman], I'm able to run OCR via extraction of the inline jpx on [this file|https://t.co/yx3GRe2e6w] without the bridge classes.
Can you try trunk against your test file(s)? My "test" with the linked file renamed to {{testOCR_jp2.pdf}} looked like this:
{noformat}
@Test
public void testOneOff() throws Exception {
ParseContext context = new ParseContext();
PDFParserConfig parserConfig = new PDFParserConfig();
parserConfig.setExtractInlineImages(true);
context.set(PDFParserConfig.class, parserConfig);
debug(getRecursiveMetadata("testOCR_jp2.pdf", context));
}
{noformat}
> Enable extraction of inlined jp2/jpx from PDF
> ---------------------------------------------
>
> Key: TIKA-2175
> URL: https://issues.apache.org/jira/browse/TIKA-2175
> Project: Tika
> Issue Type: Bug
> Reporter: Tim Allison
>
> On TIKA-2174, [~mcaruanagalizia] reported that inline jp2 images in PDFs were not being OCR'd. TIKA-2174 added that file type to our tesseract parser, but we our code in the PDFParser wasn't extracting the inline images as well. Let's fix that.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)