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?
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#
- Capacitor
- Cordova
- Enterprise
$ npm install cordova-plugin-openalpr $ npm install @ionic-native/openalpr $ ionic cap sync
$ ionic cordova plugin add cordova-plugin-openalpr $ npm install @ionic-native/openalpr
Ionic Enterprise comes with fully supported and maintained plugins from the Ionic Team. Learn More or if you're interested in an enterprise version of this plugin Contact Us
#
Supported Platforms- Android
- iOS
#
Usage#
ReactLearn more about using Ionic Native components in React
#
Angularimport { OpenALPR, OpenALPROptions, OpenALPRResult } from '@ionic-native/openalpr/ngx';
constructor(private openALPR: OpenALPR) { }
const scanOptions: OpenALPROptions = { country: this.openALPR.Country.EU, amount: 3}
// To get imageData, you can use the @ionic-native/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));