You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use the offline Chinese text recognition on my Google Pixel 2 XL, it is not working.
I have HMS Core installed on my device. (Version: 5.0.1.313)
This is the code how I initialise MLTextAnalyser:
private val hmsTextRecognizer : MLTextAnalyzer by lazy {
val setting = MLLocalTextSetting.Factory()
.setOCRMode(MLLocalTextSetting.OCR_DETECT_MODE)
.setLanguage("zh")
.create()
MLAnalyzerFactory.getInstance().getLocalTextAnalyzer(setting)
}
The TextAnalyser doesn't recognise any text.
I see following error:
E/CountryCodeBean: getVendorCountry=UNKNOWN
E/CountryCodeBean: getSimCountryCode by not enableNetwork, countryCode=at
E/CountryCodeBean: getVendorCountry=UNKNOWN
E/CountryCodeBean: getSimCountryCode by not enableNetwork, countryCode=at
E/HaLogProvider: forbiddenHiLog.getVenderCountry=UNKNOWN
E/HaLogProvider: forbiddenHiLog openHa = false
E/FocusShootOCREngine: ocr load model failed
E/HaLogProvider: forbiddenHiLog.getVenderCountry=UNKNOWN
E/HaLogProvider: forbiddenHiLog openHa = false
On my Huawei Mate 30 Pro it works.
The text was updated successfully, but these errors were encountered:
Thanks for asking, I just realised I didn't include implementation 'com.huawei.hms:ml-computer-vision-ocr-cn-model:2.0.1.300'
I wasn't paying attention because seems like on my Huawei Mate 30 Pro it works without it...
This issue can be closed.
I have another question, I see in the documentation that ML-Kit TTS is only available on Huawei phone, will it be sometime also available on non Huawei phones (but with HMS core installed)?
I am trying to use the offline Chinese text recognition on my Google Pixel 2 XL, it is not working.
I have HMS Core installed on my device. (Version: 5.0.1.313)
This is the code how I initialise MLTextAnalyser:
The TextAnalyser doesn't recognise any text.
I see following error:
On my Huawei Mate 30 Pro it works.
The text was updated successfully, but these errors were encountered: