Configure Media Server

This section describes how to configure Media Server so that it can process files for your NiFi ingestion pipeline. This example shows how to run optical character recognition on images.

To configure Media Server

  1. On the Media Server machine, open the Media Server configurations directory. This is the directory specified by the ConfigDirectory parameter, in the [Paths] section of the Media Server configuration file. The default location is ./configurations/.
  2. Create a new configuration file with the name ocrdoc.cfg (you specified this name when you configured the media analysis processor in Add Media Analysis).
  3. Open the file and add the following text:

    [Session]
    Engine0=Ingest
    Engine1=OCR
    Engine2=Response
    
    [Ingest]
    Type=image
    
    [OCR]
    Type=ocr
    OCRMode=document
    Languages=en
    WordRejectThreshold=60
    
    [Response]
    Type=response
    Input=OCR.Result
  4. Save and close the session configuration file.
_FT_HTML5_bannerTitle.htm