Skip to content

Flutter ALPR/ANPR Project: license plate recognition, vehicle number plate recognition, ALPR reader, ALPR scanner, license plate OCR, car number plate recognition

Notifications You must be signed in to change notification settings

kby-ai/Automatic-License-Plate-Recognition-Flutter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

17 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ€— Hugging Face - Here

πŸ“š Product & Resources - Here

πŸ›Ÿ Help Center - Here

πŸ’Ό KYC Verification Demo - Here

πŸ™‹β€β™€οΈ Docker Hub - Here

Automatic-License-Plate-Recognition-Flutter

Overview

We implemented ANPR/ALPR(Automatic Number/License Plate Recognition) engine with unmatched accuracy and precision by applying SOTA(State-of-the-art) deep learning techniques in this repository.
We have built ANPR/ALPR project with Flutter framework.

KBY-AI's LPR solutions utilizes artificial intelligence and machine learning to greatly surpass legacy solutions. Now, in real-time, users can receive a vehicle's plate number.

The ALPR system consists of the following steps:

  • Vehicle image capture
  • Preprocessing
  • Vehicle detection
  • Number plate extraction
  • Charater segmentation
  • Optical Character Recognition(OCR)

The ALPR system works in these strides, the initial step is the location of the vehicle and capturing a vehicle image of front or back perspective of the vehicle, the second step is the localization of Number Plate and then extraction of vehicle Number Plate is an image. The final stride uses image segmentation strategy, for the segmentation a few techniques neural network, mathematical morphology, color analysis and histogram analysis. Segmentation is for individual character recognition. Optical Character Recognition (OCR) is one of the strategies to perceive the every character with the assistance of database stored for separate alphanumeric character.

Google Play

Screenshots

Performance Video

You can visit our YouTube video for ANPR/ALPR model's performance here to see how well our demo app works.

ANPR/ALPR Demo

SDK License

  • The code line below shows how to update SDK with the license key:
    if (Platform.isAndroid) {
    await _alprsdkPlugin
    .setActivation(
    "o3AfDW+0LAb55qW354xp9ef/Twg1WumIcKaBQLydx+o7+8nuZSo4aL4vVGro3mNCLvo8C2OPNDjZ"
    "/8k+bvgbf8+QszGqG5ubjZOaREXO0Iw8pSepERy4HrWrS6I9ObjuttMUIRHBFNjIsT3RKH57mNv6"
    "1IXxewXlIA2oe5Vak/zaddoKKKcSW+iWJWqIa1MxGn8PpUD1riQS9RrO/cwZsiAJU+5+ekkkyP3C"
    "7eNZGzFfpmkLM55p2F98IMqWHjaMmX0klsNlxE/bdSJD8c2cS/+9DGLqiWb2FHz8FpR6sXjc+eGM"
    "bNtBd0YxqfAy+oeTVdPyw0E17lj+Hilw4L4C6Q==")
    .then((value) => facepluginState = value ?? -1);
    }
  • To request license key, please contact us:
    πŸ§™Email: contact@kby-ai.com
    πŸ§™Telegram: @kbyai
    πŸ§™WhatsApp: +19092802609
    πŸ§™Skype: live:.cid.66e2522354b1049b
    πŸ§™Facebook: https://www.facebook.com/KBYAI

How To Run

1. Flutter Setup

Make sure you have Flutter installed.
This repo has been built with Flutter version 3.22.3.
If you don't get Flutter installed, please follow the instructions provided in the official Flutter documentation here.

2. Running the App

Try to build this repo to make sure that SDK works fine by linking real Android phone, not simulator. Once it works fine, you are ready to integrate our SDK to your project.
Run the following commands:

flutter pub upgrade
flutter run

If you plan to run the iOS app, please refer to the following link for detailed instructions.

About SDK

1. Set up

1.1 Setting Up ALPR SDK

Android

  • Copy the SDK(folder libttvalpr) to the folder android in your project.
  • Add SDK to the project in settings.gradle.
include ':libttvalpr'

1.2 Setting Up ALPR SDK Plugin

  • Copy the folder alprsdk_plugin to the root folder of your project.
  • Add the dependency in your pubspec.yaml file.
  alprsdk_plugin:
    path: ./alprsdk_plugin
  • Import the alprsdk_plugin package.
  import 'package:alprsdk_plugin/alprsdk_plugin.dart';

2 API Usages

2.1 ALPRsdk Plugin

  • Activate the AlprsdkPlugin by calling the setActivation method:
  final _alprsdkPlugin = AlprsdkPlugin();
  ...
   await _alprsdkPlugin
          .setActivation(
              "o3AfDW+0LAb55qW354xp9ef/Twg1WumIcKaBQLydx+o7+8nuZSo4aL4vVGro3mNCLvo8C2OPNDjZ"
              "/8k+bvgbf8+QszGqG5ubjZOaREXO0Iw8pSepERy4HrWrS6I9ObjuttMUIRHBFNjIsT3RKH57mNv6"
              "1IXxewXlIA2oe5Vak/zaddoKKKcSW+iWJWqIa1MxGn8PpUD1riQS9RrO/cwZsiAJU+5+ekkkyP3C"
              "7eNZGzFfpmkLM55p2F98IMqWHjaMmX0klsNlxE/bdSJD8c2cS/+9DGLqiWb2FHz8FpR6sXjc+eGM"
              "bNtBd0YxqfAy+oeTVdPyw0E17lj+Hilw4L4C6Q==")
          .then((value) => facepluginState = value ?? -1);
  • Initialize the AlprsdkPlugin:
await _alprsdkPlugin
          .init()
          .then((value) => alprpluginState = value ?? -1)
  • Extract plates using the extractFaces method:
final plates = await _alprsdkPlugin.extractFaces(path: image.path)

About

Flutter ALPR/ANPR Project: license plate recognition, vehicle number plate recognition, ALPR reader, ALPR scanner, license plate OCR, car number plate recognition

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published