Scan Kit Detection Box Too Small?

Min Uswachoke

--

Obviously the detection box for QR-Code type is not an issue, but the real issue come when you try to scan a long bar-code. You will notice that detection by default is simply too small. But here I will provide the solution for you all. *Noted this is a solution only for Customized-View Type.

[Insert Image here]

This above snippet is the part of the code provided in Huawei Official Website. This is to make the scan frame set in the middle of the screen, however just a 300 size is not big enough for the bar-code scan.

You might think that setting the Bounding-Box to null will make the detection full screen but no it will not.

Here is the solution, to make the Bounding-Box full screen is by simply set everything -1, this is not being mention at all in the Document. I hope this solution will be able to help you.

--

--

No responses yet

Write a response