Inconsistent QR Code Scanning Success: Mac M1 vs. Windows 11 #937
Unanswered
1980693-paulocosme
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a project that involves reading images (PDF, JPG, TIFF, and PNG) extracted from a form and loaded into memory for QR code identification and parsing. The image can be analyzed in its entirety or in part, allowing the user to draw an area on the canvas. I'm using the html5-qrcode library for QR code reading and extraction.
The QR code detection works significantly better on Mac (M1) than on Windows 11 (I7). I'm testing both html5QrCode.scanFile and html5QrCode.scanFileV2 versions of the library.
Additional Details:
Library and Tools Versions: html5-qrcode library (version 2.3.8), Chrome/Edge (version 127.0.6533.89 ).
Sample Code:
`const aformatsToSupport = [
Html5QrcodeSupportedFormats.QR_CODE,
];
const html5QrCode = new Html5Qrcode("qr-code-reader", {
formatsToSupport: aformatsToSupport,
experimentalFeatures: {useBarCodeDetectorIfSupported: true}
});
const config = {
fps: 10, // Frames por segundo para a leitura do QR code
supportedScanTypes: [Html5QrcodeScanType.SCAN_TYPE_FILE], // Tipos de scan suportados
showTorchButtonIfSupported: false // Botão de lanterna
};
const result = await html5QrCode.scanFile(file, false, config);`
Error Messages: No specific error messages, just lower success rates on Windows 11.
Image Details: Images vary in size and resolution, typical formats are PDF, JPG, TIFF, PNG.
Do you have any suggestions or insights on how to improve QR code scanning success on Windows 11 compared to Mac M1? Any specific configurations or adjustments to the html5-qrcode library that could enhance performance on Windows?
Beta Was this translation helpful? Give feedback.
All reactions