[Public] Can IronQR Scan Live Video Streams From a Mobile Camera?
Can IronQR read QR codes directly from a live camera feed — like scanning in real time from a phone’s camera?
IronQR is a powerful .NET library for generating and reading QR codes — and it works well across a variety of platforms, including desktop, web, and mobile applications. However, developers tend to ask the question above.
The Short Answer
Not out of the box — yet.
As of now, IronQR does not provide a built-in method for live video stream scanning. Instead, users need to:
✅ Capture video frames from the mobile device’s camera
✅ Convert each frame into an image
✅ Pass the image to QrReader.Read()
for decoding
🛠️ How Developers Can Implement Live Scanning
If you’re building a mobile app and want to scan QR codes live, here’s what you can do:
-
Access the device’s camera feed using a platform-native API (e.g., Xamarin.Essentials, MAUI Camera, Android/iOS SDKs).
-
Continuously grab frames (e.g., every 100ms).
-
Pass each frame as an image to IronQR:
This gives the effect of “live scanning,” even though IronQR is only analyzing still frames, one at a time.
Why Not Built-In Yet?
This feature — scanning directly from a live video stream — is more typical of real-time computer vision frameworks (like OpenCV or platform-native camera SDKs).
IronQR is focused on high-accuracy static QR code recognition, but:
There’s interest in adding this feature in the future, but for now, real-time scanning must be implemented at the app level.
🔚 Conclusion
IronQR doesn’t currently support scanning from a live camera feed directly, but you can absolutely implement this yourself using a combination of:
-
Native camera access
-
Frame grabbing
-
IronQR’s
Read()
method
If live scanning is critical to your use case, this approach gives you control and flexibility — and may even open doors for more advanced customizations.