To perform OCR
Create a new configuration or open an existing configuration to send to Media Server with the process
action. Alternatively, you can modify the Media Server configuration file (mediaserver.cfg
).
In the [Analysis]
section, add a new analysis task by setting the AnalysisEngineN
parameter. You can give the task any name, for example:
[Analysis] AnalysisEngine0=OCR
Create a new configuration section to contain the task settings, and set the following parameters:
Type
|
The analysis engine to use. Set this parameter to OCR . |
Input
|
(Optional) The track to process. If you do not specify an input track, Media Server processes the first track of the correct type that is produced by the ingest engine. |
Languages
|
The language of the text. Setting this parameter narrows the character and word choices for the OCR process, which increases speed and accuracy. For a list of supported languages, see OCR Supported Languages. |
ProcessTextElements
|
(Optional) (Only affects documents) Specifies whether to merge the content of text elements into the OCR results. If the text elements in the document are not consistent with the text that appears in the image, you might want to set this parameter to false . |
CharacterTypes
|
(Optional) If the document uses a particular type of characters only, such as all uppercase, or all lowercase, you can specify the type in the CharacterTypes parameter. This can improve accuracy. |
HollowText
|
(Optional) Set this parameter if you are processing subtitles that consist of white characters with black outlines. |
Region
|
(Optional) Restrict OCR to a region of the image, instead of the entire image. |
RegionUnit
|
(Optional) The units to use for specifying the region (default pixel ). To specify the position and size of the region as a percentage of the media size, set this parameter to percent . |
For example:
[OCR] Type=ocr Languages=en
For more information about the parameters you can use to customize OCR, refer to the Media Server Reference.
Save and close the configuration file. If you modified the Media Server configuration file, you must restart Media Server for your changes to take effect.
|