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:
-
When calling the API directly (https://api.ocr.space/parse/image), and
-
When using the web interface at https://ocr.space/
Steps to Reproduce
-
Send an OCR request using OCR Engine 2
-
Set the request body parameter:
"language": "ukr" -
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.