API Error When Using language: "ukr" in OCR Engine 2

Hello,

I’m encountering an API error when setting the request body to use OCR Engine 2 with the language parameter set to "ukr". The same request works correctly when the language is set to "auto", and the text is detected properly.

This issue occurs both:

Steps to Reproduce

  1. Send an OCR request using OCR Engine 2

  2. Set the request body parameter:

    "language": "ukr"
    
  3. Submit the request

Expected Result

The OCR should process Ukrainian text successfully, similar to when "language": "auto" is used.

Actual Result

An API error is returned when "language": "ukr" is specified.

{ 
"OCRExitCode": 99,
"IsErroredOnProcessing": true, 
"ErrorMessage": [ "E201: Value for parameter 'language' is invalid" ], "ProcessingTimeInMilliseconds": "15"
}

Workaround

Using:

"language": "auto"

works correctly and detects the text as expected.

Additional Notes

  • The issue appears to be specific to the "ukr" language setting.

  • No issues occur with automatic language detection.

Sorry for the confusion:

  • The “ukr” language setting and language settings in general are only needed for OCR Engine1.
  • For OCR Engine2 simply use the “auto” setting. Language settings are no longer needed for OCR Engine 2. We keep them only for backward compatibility. Technically without using “auto” your request gets routed to an older version of the OCR Engine2, and with “auto” it gets routed to a newer version of the OCR engine2.
1 Like