# 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.

© Copyright 2018-2020 Micro Focus or one of its affiliates | Send documentation feedback Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a mail client, and then send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm