I am trying to use Vision to recognize text from an image; it works fine for English but I would need to set it for other languages which are not using Latin characters.
I found in the documentation that for the class "VNRecognizeTextRequest" there is a "var recognitionLanguages: [String]" which is "An array of languages to detect, in priority order." but unfortunately it seems not to work, even though I tried to set it to other languages, using the ISO code as required.
Does anyone has any idea how to properly to do it?
Thanks!
I found in the documentation that for the class "VNRecognizeTextRequest" there is a "var recognitionLanguages: [String]" which is "An array of languages to detect, in priority order." but unfortunately it seems not to work, even though I tried to set it to other languages, using the ISO code as required.
Does anyone has any idea how to properly to do it?
Thanks!
Support for several new languages has been introduced to VNRecognizeTextRequest in iOS 14, iPadOS 14, macOS Big Sur, and tvOS 14.
You can query the supported languages for each different paths and revisions using the VNRecognizeTextRequest class method supportedRecognitionLanguages(for:revision:)
The following guide has some information that you may find helpful https://developer.apple.com/documentation/vision/recognizing_text_in_images
You can query the supported languages for each different paths and revisions using the VNRecognizeTextRequest class method supportedRecognitionLanguages(for:revision:)
The following guide has some information that you may find helpful https://developer.apple.com/documentation/vision/recognizing_text_in_images