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
Current implementation seems to pass the entire image captured by camera to zxing. This might lead to an unexpected nearby barcode label to be capture instead.
Proposed Solution
It is better to show a focused region like this example screenshot. Or something similar to UI5 sap.ndc.BarcodeScanner animated scanning css effect. This can help user to position camera so that the barcode label fits within the centered region.
In the code, only the centered region needs to be draw to image canvas, and pass to zxing for barcode recognition.
This might require capturing video frame as image as done in sap.ndc.BarcodeScanner and then use codeReader.decodeFromImage API instead of decodeFromVideo.
Feature Request Description
Current implementation seems to pass the entire image captured by camera to zxing. This might lead to an unexpected nearby barcode label to be capture instead.
Proposed Solution
It is better to show a focused region like this example screenshot. Or something similar to UI5 sap.ndc.BarcodeScanner animated scanning css effect. This can help user to position camera so that the barcode label fits within the centered region.
In the code, only the centered region needs to be draw to image canvas, and pass to zxing for barcode recognition.
This might require capturing video frame as image as done in sap.ndc.BarcodeScanner and then use
codeReader.decodeFromImage
API instead ofdecodeFromVideo
.https://github.com/zxing-js/library/blob/master/docs/examples/barcode-image/index.html
Proposed Alternatives
No response
Organization
UX Engineering
Additional Context
No response
Priority
Medium
Privacy Policy
The text was updated successfully, but these errors were encountered: