HMS ML Demo provides an example of integrating Huawei ML Kit service into applications. This example demonstrates how to integrate services provided by ML Kit, such as face detection, text recognition, image segmentation, asr, and tts.
I am using this example to scan the ID card, it is working fine but when i am trying to scan it 2nd time, it is giving me null pointer exception.
Exception thrown from receiver.
java.lang.NullPointerException: tepoivkitaehd'odcmhae.m.ld.omnMAaye.banitr(o.uwihsmskcmo.Lrm)nanlbetrfrne
at com.huawei.hms.mlsdk.common.LensEngine$LensAnalyzerRunable.run(LensEngine.java:734)
at java.lang.Thread.run(Thread.java:929)
Hi,
I am using this example to scan the ID card, it is working fine but when i am trying to scan it 2nd time, it is giving me null pointer exception.
Exception thrown from receiver. java.lang.NullPointerException: tep oivk ita ehd'odcmhae.m.ld.omnMAaye.banitr(o.uwihsmskcmo.Lrm) nanl betrfrne at com.huawei.hms.mlsdk.common.LensEngine$LensAnalyzerRunable.run(LensEngine.java:734) at java.lang.Thread.run(Thread.java:929)
plus any reason for getting below logs
forbiddenHiLog.getVenderCountry=meafnaf forbiddenHiLog openHa = true
Update: we need below code onPause, that will resolve the issue. this.lensEngine = null;
I still want to know the reason behind forbidden lines.
Thanks in advance for your help.