Skip to main content
Version: v5

OpenALPR

This Cordova plugin adds support for the OpenALPR (Automatic License Plate Recognition) library, which provides support for retrieving the license plate from a picture.

https://github.com/iMicknl/cordova-plugin-openalpr

Stuck on a Cordova issue?

Don't waste precious time on plugin issues.

If you're building a serious project, you can't afford to spend hours troubleshooting. Ionic’s experts offer premium advisory services for both community plugins and premier plugins.

Installation

$ npm install cordova-plugin-openalpr 
$ npm install @awesome-cordova-plugins/openalpr
$ ionic cap sync

Supported Platforms

  • Android
  • iOS

Usage

React

Learn more about using Ionic Native components in React

Angular

import { OpenALPR, OpenALPROptions, OpenALPRResult } from '@awesome-cordova-plugins/openalpr/ngx';


constructor(private openALPR: OpenALPR) { }

const scanOptions: OpenALPROptions = {
country: this.openALPR.Country.EU,
amount: 3
}

// To get imageData, you can use the @awesome-cordova-plugins/camera module for example. It works with DestinationType.FILE_URI and DATA_URL

this.openALPR.scan(imageData, scanOptions)
.then((res: [OpenALPRResult]) => console.log(res))
.catch((error: Error) => console.error(error));