Reputation: 2221
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.
Upvotes: 5
Views: 3066
Reputation: 5816
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" ]
Upvotes: 1