iMicknl / 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.
MIT License
32 stars 23 forks source link

TypeError cannot read property 'scan' of undefined #35

Closed VigilanteInc closed 6 years ago

VigilanteInc commented 6 years ago

I get the error 'TypeError cannot read property 'scan' of undefined' when calling the openalpr plugin as follows

cordova.plugins.OpenALPR.scan(filepath, { country: 'eu', amount: 3 }, function (results) {
     console.log(results);
 }, function (error) {
     console.log(error.code + ': ' + error.message)
 });

installed using cordova plugin add cordova-plugin-openalpr Android@~6.3.0

iMicknl commented 6 years ago

Which version of Ionic do you use?

VigilanteInc commented 6 years ago

Not using Ionic. Problem stopped after building apk.