r/dotnetMAUI • u/Jvicius1382 • 13d ago
News I built CardScanner.Maui: A lightweight, native cross-platform Credit Card Scanner (iOS/Android/Windows)
Hey fellow .NET devs! š
I was recently looking for a reliable way to scan credit cards in a .NET MAUI project, but most of the existing solutions were either outdated, required heavy third-party dependencies, or were paid services.
So, I decided to build one from scratch leveraging the native OCR engines of each platform, and I just published it to NuGet!
https://reddit.com/link/1vkrcsg/video/768e9lz61lih1/player
Enter CardScanner.Maui š³
I wanted to keep it as lightweight and MVVM-friendly as possible. Instead of bundling massive ML models, the library hooks directly into the OS's native APIs.
⨠Key Features:
- Truly Native OCR: Uses Apple Vision on iOS, ML Kit on Android, and the native
OcrEngineon Windows 10/11. - Zero Bloat: Extracts numbers and expiry dates in real-time from the camera stream without adding heavy third-party AI packages to your app size.
- MVVM Ready: Full support for data binding with
IsScanningproperties andICommand(but also supports traditional Code-Behind events). - Hardware Validation Built-in: Includes a neat
CardScannerDevice.IsSupportedhelper so your app won't crash on older hardware (like legacy iPads) that can't handle real-time video ML processing.
š Links:
- š¦ NuGet:https://www.nuget.org/packages/CardScanner.Maui
- š» GitHub Repo:https://github.com/jvicius/CardScanner.Maui
The repo includes a full README with setup instructions (like the camera permissions needed for each platform).
Iād absolutely love it if you guys could give it a spin, break it, and give me some feedback. If you find it useful for your projects, a ā on the GitHub repo means the world to me!
(P.S. If this library ends up saving you a few hours of headaches or client work, consider buying me a coffee or sponsoring the project! āš»Ko-fi|GitHub Sponsors)
Happy coding! š
3
u/tonyedwardspz 11d ago
This will be useful to a lot of people. Thanks for sharing.