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
We're facing the same problem.
Code recognition success rate on iPhone 13 and 15 models is very low (less than 10%), while on android devices, the recognition is very fast.
iPhone 13 Pro has 3 lens. And when you do a close-up scan, iPhone will automatically switch lens to make the capture clear. However, the recognition is still not happening.
iPhone 15 has two lens. When you do a very close-up scan, the image is blurred. There is no close-up lens available to make the capture clear (even with native iOS camera app). You have to keep the camera at a medium distance to make the image clear
The initial test suggests it may be more related to iOS camera & scanning library integration issues, and less a lens-switch issue
Describe the bug
A clear and concise description of what the bug is.
Describe the browser:
Screenshots
import { Html5QrcodeScanner, Html5QrcodeScanType } from 'html5-qrcode'; import { useEffect, useRef } from 'react'; const Html5QrcodePlugin = (props) => { const scannerRef = useRef(null); // useRef para mantener la referencia del escáner const qrcodeRegionId = "html5qr-code-full-region"; // ID del contenedor del escáner useEffect(() => { // Solo se ejecuta una vez, ya que el array de dependencias está vacío if (!scannerRef.current) { scannerRef.current = new Html5QrcodeScanner( qrcodeRegionId, { fps: props.fps, qrbox: props.qrbox, aspectRatio: props.aspectRatio, disableFlip: props.disableFlip, focusMode: "continuous", rememberLastUsedCamera: true, supportedScanTypes: [Html5QrcodeScanType.SCAN_TYPE_CAMERA], experimentalFeatures: { useBarCodeDetectorIfSupported: true }, willReadFrequently: true, advanced: [{ zoom: 2.0 }] }, props.verbose ); } const startScanner = () => { scannerRef.current.render( props.qrCodeSuccessCallback, props.qrCodeErrorCallback ); }; setTimeout(() => { startScanner(); }, 0); return () => { scannerRef.current.clear().catch((error) => { console.error("Failed to clear html5QrcodeScanner.", error); }); }; }, []); return <div id={qrcodeRegionId} />; }; export default Html5QrcodePlugin;
{showScanner && ( <Html5QrcodePlugin fps={10} qrbox={250} disableFlip={false} qrCodeSuccessCallback={onNewScanResult} /> )}
The text was updated successfully, but these errors were encountered: