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
First let me say that the scanner is great.
We use the scanner for our drivers to scan return items from customers.
Some drivers have their own phones and that's where things go wrong.
Half of the phones don't work properly with the scanner
These phones don't recognized the barcode.
They are usually the IPhones or the Phones with the better camera's.
Where should I look to get it working?
Working: Oppo A91.
Not working. Iphone 13.
docReady(function() {
var lastResult, countResults = 0;
var qrboxFunction = function(viewfinderWidth, viewfinderHeight) {
// Square QR Box, with size = 80% of the min edge.
var minEdgeSizeThreshold = 250;
var edgeSizePercentage = 0.8;
var minEdgeSize = (viewfinderWidth > viewfinderHeight) ?
viewfinderHeight : viewfinderWidth;
var qrboxEdgeSize = Math.floor(minEdgeSize * edgeSizePercentage);
if (qrboxEdgeSize < minEdgeSizeThreshold) {
if (minEdgeSize < minEdgeSizeThreshold) {
return {width: minEdgeSize, height: minEdgeSize};
} else {
return {
width: minEdgeSizeThreshold,
height: minEdgeSizeThreshold
};
}
}
return {width: qrboxEdgeSize, height: qrboxEdgeSize};
}
let html5QrcodeScanner = new Html5QrcodeScanner(
"reader",
{
fps: 10,
qrbox: qrboxFunction,
disableFlip: false,
focusMode: "continuous",
rememberLastUsedCamera: true,
aspectRatio: 1.0,
experimentalFeatures: {
useBarCodeDetectorIfSupported: true
}
});
function onScanSuccess(decodedText, decodedResult) {
if (decodedText !== lastResult) {
++countResults;
lastResult = decodedText;
ToAGP(decodedText);
}
}
html5QrcodeScanner.render(onScanSuccess);
});
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
First let me say that the scanner is great.
We use the scanner for our drivers to scan return items from customers.
Some drivers have their own phones and that's where things go wrong.
Half of the phones don't work properly with the scanner
These phones don't recognized the barcode.
They are usually the IPhones or the Phones with the better camera's.
Where should I look to get it working?
Working: Oppo A91.
Not working. Iphone 13.
docReady(function() {
var lastResult, countResults = 0;
var qrboxFunction = function(viewfinderWidth, viewfinderHeight) {
// Square QR Box, with size = 80% of the min edge.
var minEdgeSizeThreshold = 250;
var edgeSizePercentage = 0.8;
var minEdgeSize = (viewfinderWidth > viewfinderHeight) ?
viewfinderHeight : viewfinderWidth;
var qrboxEdgeSize = Math.floor(minEdgeSize * edgeSizePercentage);
if (qrboxEdgeSize < minEdgeSizeThreshold) {
if (minEdgeSize < minEdgeSizeThreshold) {
return {width: minEdgeSize, height: minEdgeSize};
} else {
return {
width: minEdgeSizeThreshold,
height: minEdgeSizeThreshold
};
}
}
return {width: qrboxEdgeSize, height: qrboxEdgeSize};
}
let html5QrcodeScanner = new Html5QrcodeScanner(
"reader",
{
fps: 10,
qrbox: qrboxFunction,
disableFlip: false,
focusMode: "continuous",
rememberLastUsedCamera: true,
aspectRatio: 1.0,
experimentalFeatures: {
useBarCodeDetectorIfSupported: true
}
});
function onScanSuccess(decodedText, decodedResult) {
if (decodedText !== lastResult) {
++countResults;
lastResult = decodedText;
ToAGP(decodedText);
}
}
html5QrcodeScanner.render(onScanSuccess);
});
Beta Was this translation helpful? Give feedback.
All reactions