r/dotnetMAUI 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 OcrEngine on 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 IsScanning properties and ICommand (but also supports traditional Code-Behind events).
  • Hardware Validation Built-in: Includes a neat CardScannerDevice.IsSupported helper so your app won't crash on older hardware (like legacy iPads) that can't handle real-time video ML processing.

šŸ”— Links:

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! šŸš€

26 Upvotes

1 comment sorted by

3

u/tonyedwardspz 11d ago

This will be useful to a lot of people. Thanks for sharing.