You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2018/09/24 14:39:00 UTC

[jira] [Commented] (TIKA-2638) Tika server fails with status 500 if X-Tika-OCRLanguage set to multiple OCR dictionaries

    [ https://issues.apache.org/jira/browse/TIKA-2638?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16625907#comment-16625907 ] 

Hudson commented on TIKA-2638:
------------------------------

UNSTABLE: Integrated in Jenkins build tika-2.x-windows #319 (See [https://builds.apache.org/job/tika-2.x-windows/319/])
TIKA-2638 -- allow multiple languages in config for OCR parser (tallison: rev a89170f6d5261c62bd59f3229235edc6c2175fc7)
* (edit) tika-server/src/test/java/org/apache/tika/server/TikaResourceTest.java
* (edit) tika-server/src/main/java/org/apache/tika/server/resource/TikaResource.java


> Tika server fails with status 500 if X-Tika-OCRLanguage set to multiple OCR dictionaries
> ----------------------------------------------------------------------------------------
>
>                 Key: TIKA-2638
>                 URL: https://issues.apache.org/jira/browse/TIKA-2638
>             Project: Tika
>          Issue Type: Bug
>          Components: ocr
>    Affects Versions: 1.18, 1.19
>            Reporter: Markus Mandalka
>            Assignee: Tim Allison
>            Priority: Major
>             Fix For: 1.19.1
>
>
> Tika 1.18 fails with returned status 500 if setting MULTIPLE (delimited by +) dictionaries for Tesseract OCR set by HTTP {{header like "X-Tika-OCRLanguage: eng+fra"}}
> Setting a single OCR dictionary works.
> Relevant documentation part from [https://wiki.apache.org/tika/TikaOCR|https://wiki.apache.org/tika/TikaOCR:]
> h2. Overriding the configured language as part of your request
> Different requests may need processing using different language models. These can be specified for specific requests using the _X-Tika-OCRLanguage_ custom header. An example of this is shown below:
> {{curl -T /path/to/tiff/image.jpg [http://localhost:9998/tika]- -header "X-Tika-OCRLanguage: eng"}}
> Or for multiple languages:
> {{curl -T /path/to/tiff/image.jpg [http://localhost:9998/tika]- -header "X-Tika-OCRLanguage: eng+fra"}}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)