From 44b97e5c3b6830f0eb7cc5ab1eddc67e1a7ae473 Mon Sep 17 00:00:00 2001 From: Xuanna024 <69863155+BI7KHI@users.noreply.github.com> Date: Sat, 26 Sep 2026 14:21:30 +0800 Subject: [PATCH] Improve barcode scanning with native BarcodeDetector (#12784) * Improve barcode scanning with native BarcodeDetector Use the browser-native BarcodeDetector (Shape Detection API) for camera barcode scanning when available, falling back to html5-qrcode. Native decoding is hardware-accelerated and far more robust to low light, blur and small codes than the pure-JS software decoder. Also: - Prefer the rear camera and higher resolution for better recognition - Add a flashlight (torch) toggle for low-light scanning - Full-frame detection (no aiming box) with multi-code support - Auto-select a camera so scanning starts without manual selection - Relax camera constraints (ideal instead of exact) for mobile robustness - Fix a bug where the native