Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: dependencies for tika-server and tika-app

...

java -jar /path/to/tika-server-1.7-SNAPSHOTXXX.jar

in another window, issue a cURL request

...

Tika's OCR will trigger on images embedded within, say, office documents in addition to images you upload directly. Because OCR slows down Tika, you might want to disable it if you don't need the results. You can disable OCR by simply uninstalling tesseract, but if that's not an option, here is a tika.xml config file that disables OCR:

No Format

<?xml version="1.0" encoding="UTF-8"?>
<properties>
  <parsers>
    <parser class="org.apache.tika.parser.DefaultParser">
      <parser-exclude class="org.apache.tika.parser.ocr.TesseractOCRParser"/>
    </parser>
  </parsers>
</properties>

...

Tika will run preprocessing of images (rotation detection and image normalizing with ImageMagick) before sending the image to tesseract if the user has included dependencies (listed below) and if the user opts to include these preprocessing steps.

To render PDF files, you may need to use files from Java Imaging (especially the JPEG2000 decoder). This is described here.

To include the jar files in your class path, you need to start the server in a different way (this assumes you have copied the jar files in the lib subdirectory):

java -cp "tika-server-XXX.jar:./lib/*" org.apache.tika.server.core.TikaServerCli <parameters>

Important: use ";" instead of ":" when on Windows.

If you are using tika-app, your command line would look like this:

java -cp "tika-app-XXX.jar:./lib/*" org.apache.tika.cli.TikaCLI <parameters>

To identify rotation

python must be installed with scikit-image and numpy

...