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
ConfigDirectory
parameter, in the [Paths]
section of the Media Server configuration file. The default location is ./configurations/
.ocrdoc.cfg
(you specified this name when you configured the media analysis processor in Add Media Analysis).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
|