HMS-Core / hms-scan-demo

Sample code for demonstrating Huawei HMS ScanKit capabilities. It illustrates how to help developers quickly build code scanning capabilities.

Home Page:https://developer.huawei.com/consumer/en/doc/development/HMS-Guides/scan-introduction-4?ha_source=hms1

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

二维码识别,在连续识别的情况下,如何设置识别时间隔间?

lhb123 opened this issue · comments

commented

在连续识别二维码的情况下,我想要二次识别设置下识别间隔时间3秒左右,现在好像是不断的连续识别,调用remoteView.onstop()方法,j来停止识别,让后再调用onstart()方法开启识别,这个界面就不太友好了!不知道官方有设置这个连续识别间隔时间不?

Hello,

According to my research the continuous scan is collecting the results while the camera is in use thus scans the frame without intervals.

In order to wait for a specific time frame while scanning a barcode, you can implement your own camera or use a 3rd party dependency that offers camera as a widget and process the camera output using Huawei Scan's decodeWithBitmap API. For detailed information about decodeWithBitmap API, please check this link.