How to scan and highlight tiny QR code similar camera on iphone using Javascript

I am developing a QR code scanning feature using JavaScript libraries. I’ve tried libraries like html5-qrcode and jsQR, and they work well for standard-sized QR codes. However, my application needs to scan very small QR codes, about 1 cm in size, which are difficult to detect. How can I improve the detection and highlight these tiny QR codes, similar to the seamless performance of the iPhone camera? I would greatly appreciate any suggestions or advice.
My QR code need to scan