Please see the two test results.
There are two languages, but Cloud vision api always returns results in one language.
Could we tell which language(s) are expected in the image, so that the engine can try to find to recognize all characters even they are in different languages?
1. Original image has three Chinese characters but was not recognized.
2. Then I tried to crop the image to make it has only Chinese characters.
The three Chinese characters can be recognized successfully.
Yes, you can tell the API which languages to expect.
According to the API's ImageContext documentation, you can direct the API to look for a list of particular languages for TEXT_DETECTION. Multiple values are accepted for a single image:
"languageHints": [ "en", "zh-TW" ]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With