Infrastructure prerequisites
- S3 bucket or alternative (for example, minio)
- Kafka cluster
Deployment/configuration
To deploy the OCR plugin, you will need to deployocr-plugin Helm chart with custom values file.
Most important sections are these, but more can be extracted from Helm chart.
Kafka configuration
You can override the following environment variables:
Please note that the default values and examples provided here are for illustrative purposes. Make sure to replace them with the appropriate values based on your Kafka configuration.
When configuring the OCR plugin, make sure to use the correct outgoing topic names that match the pattern expected by the Engine, which listens for messages on topics with specific names.
Authorization
You can override the following environment variables:
Please note that the default values and examples provided here are for illustrative purposes. Make sure to replace them with the appropriate values based on your OAuth authentication configuration.
Storage (S3 configuration)
You can override the following environment variables:
Please note that the default values and examples provided here are for illustrative purposes. Make sure to replace them with the appropriate values based on your S3 storage configuration.
Performance
Example
Certificates
You can override the following environment variables:Workers behavior
You can override the following environment variables:If no worker is released after
OCR_WORK_QUEUE_TIMEOUT seconds, the application will verify whether any workers have become unresponsive and need to be restarted.If none of the workers have died, it means they are likely blocked in some process. In this case, the application will terminate all the workers and shut down itself, hoping that the container will be restarted.Control aspect ratio
The plugin has been tested with aspect ratio values between 1.39 and 1.43. However, caution is advised when using untested values outside this range, as they may potentially disrupt the functionality. Adjust these parameters at your own risk and consider potential consequences, as untested values might lead to plugin instability or undesired behavior.

