Parameters of OCRService.ini

Parameters of the OCRService.ini file

Parameter Range OCRService property Description
CPUUsage 1 - 100 int CPUUsage {get;set} The percentage of the CPU cores used by the OCRServer, rounded to the closest integer CPU cores. The default value is 100. At least one CPU core is always used.
UserCount 1 - maximal number of CPUs int UserCount {get;set} The number of OCRServers that can run together.
Lives 1 - .. int Lives {get;set} The number of jobs processed by an OCRServer during its lifetime. The default value is 10.
LifeTime 0 - .. int LifeTime {get;set} The number of seconds an OCRService keeps the idle OCRServers in the memory.
Timeout 1 - .. int TimeOut {get;set}

The number of seconds that can pass without a running OCRServer giving a signal. If this time limit exceeds, the OCRService considers the job as non-responsive and terminates the server.

The default value is 60.

The entered data is the initial value. This parameter is recalculated during the processing.

Log -1 or 0 bool Log {get;set}

0: logging is switched off

-1: logging is switched on

Restart -1 or 0 - 23 int Restart {get;set}

If the OCRService is idle at the given hour of the day, the OCRservice performs a restart. This parameter works only if the OCRService runs as a Windows service.

If the value is -1, the service does not restart.

PingTime 1 - .. int PingTime {get;set} The frequency in minutes the OCRServer pings the client applications.
RPCTimeOut 1 - .. int RpcTimeOut {get;set} The OCRService pings the OCRServers regularly. This parameter specifies the number of minutes after the server has to answer the ping, regardless of the actual workload. If this time limit exceeds, OCRService counts the server as non-responsive and terminates it.
WorkingDirectory string WorkingDirectory {get;set} The default working directory for CSDK. The input and output paths are relative to this directory.
PriorityClass See the possible values on the Microsoft site. PRIORITY PRIORITY {get;set} The priority of a process within an OCRServer.
MemoryLimit 4 - .. int MemoryLimit {get;set} The upper limit of memory in GB an OCRServer can use during a run.