/cordova-plugin-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.

Primary LanguageC++MIT LicenseMIT

Cordova OpenALPR plugin

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

Supported platforms

The current master branch supports the following platforms:

  • iOS (>= 8)
  • Android (>= SDK 21)

Installation

This plugin requires Cordova 5.0+ and can be installed from the Cordova Plugin Registry.

cordova plugin add cordova-plugin-openalpr

How to use

This plugin defines a global cordova.plugins.OpenALPR object, which provides an API for scanning license plates. It is possible to use the output of cordova-plugin-camera and pass it to the scan function of this plugin.

Example

cordova.plugins.OpenALPR.scan(filepath, function (data) {
     //Results
     console.log(data);
 }, function (error) {
     console.log(error.code + ': ' + error.message)
 });

Notes

  • This project includes prebuilt OpenALPR libraries for iOS and Android, because the compilation of the OpenALPR framework requires a lot of effort and dependencies.

Credits