Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nateshmbhat/card-scanner-flutter

A flutter package for Fast, Accurate and Secure Credit card & Debit card scanning
https://github.com/nateshmbhat/card-scanner-flutter

ai card-scanner card-scanner-library card-scanning credit-card credit-card-scaning dart debit-card flutter image-processing image-re image-to-text ml

Last synced: 5 days ago
JSON representation

A flutter package for Fast, Accurate and Secure Credit card & Debit card scanning

Awesome Lists containing this project

README

        




Fast, Accurate and Secure Credit & Debit card scanner for Flutter

[![](https://img.shields.io/pub/v/card_scanner)](https://pub.dev/packages/card_scanner)
[![](https://img.shields.io/badge/package-flutter-blue)](https://github.com/nateshmbhat/card-scanner-flutter)
[![](https://img.shields.io/github/license/nateshmbhat/card-scanner-flutter)](https://github.com/nateshmbhat/card-scanner)
[![](https://img.shields.io/github/languages/code-size/nateshmbhat/card-scanner-flutter)](https://github.com/nateshmbhat/card-scanner-flutter)
[![](https://img.shields.io/badge/platform-android%20%26%20ios-bg)](https://github.com/nateshmbhat/card-scanner-flutter)
[![](https://img.shields.io/twitter/url?style=social&url=https%3A%2F%2Fgithub.com%2Fnateshmbhat%2Fcard-scanner-flutter)](https://twitter.com/intent/tweet?text=Wow:&url=https%3A%2F%2Fgithub.com%2Fnateshmbhat%2Fcard-scanner-flutter)

**card_scanner** is a flutter plugin for accurately and quickly scanning debit and credit cards.

## Features

- 🔒Fully **OFFLINE** scan makes it a completely **secure scanner** !
- 🎈 Can scan **Expiry date** , **Card Holder name** and **Card Issuer** (lacked by other scanners) along with the **Card number**✨
- 🔋Powered by Google's Machine Learning models
- ⚡ Great performance and accuracy
- 🧹Auto checks the card number for errors using card checksum algorithms
- 🎚Supports controlling parameters that determine the balance between speed and accuracy
- ❤️ Simple, powerful, & intuitive API

### Get Demo App Here :
[![Vision App](https://raw.githubusercontent.com/wiki/blinkid/blinkid-android/images/playstore.png)](https://play.google.com/store/apps/details?id=com.nateshmbhat.card_scanner_example)

## Install

Add this to your package's pubspec.yaml file:

```yaml
dependencies:
card_scanner:
```

> get the [latest version number here](https://pub.dev/packages/card_scanner#-installing-tab-)

## Usage

Just import the package and call `scanCard`:

```dart
import 'package:card_scanner/card_scanner.dart';
var cardDetails = await CardScanner.scanCard();

print(cardDetails);
```

Example Output:

```dart
Card Number = 5173949117389006
Expiry Date = 11/26
```

The above code opens the device camera, looks for a valid card and gets the required details and returns the `CardDetails` object.

---

### Scan Options

If you wish to obtain the card holder name and card issuer, you can specify the options:

```dart
import 'package:card_scanner/card_scanner.dart';
var cardDetails = await CardScanner.scanCard(
scanOptions: CardScanOptions(
scanCardHolderName: true,
scanCardIssuer: true,
),
);

print(cardDetails);
```

Example Output :

```dart
Card Number = 5173949117389006
Expiry Date = 11/26
Card Issuer = mastercard
Card Holder Name = PAUL SAMUELSON
```

## iOS Requirements
* The minimum target for iOS should be >= 12.0.0
* Comment out the `use_frameworks!` line from under `Podfile` of your Flutter project.
You can find this `Podfile` under `your_flutter_project/ios/Podfile`

### [Documentation & Samples](https://pub.dev/documentation/card_scanner/latest/) 📖