This Cordova plugin adds support for the OpenALPR (Automatic License Plate Recognition) library, which provides support for retrieving the license plate from a picture.
did two changes,
first, I changed the default of US numberplate to EU numberplates.
second, I made it possible to use base64 images as input.
I used these camera settings to retrieve the base64 string:
navigator.camera.getPicture(onSuccess, onFail, { // Some common settings are 20, 50, and 100
quality: 90,
destinationType: Camera.DestinationType.DATA_URL,
// In this app, dynamically set the picture source, Camera or photo gallery
sourceType: Camera.PictureSourceType.CAMERA,
encodingType: Camera.EncodingType.JPEG,
mediaType: Camera.MediaType.PICTURE,
allowEdit: true,
correctOrientation: true, //Corrects Android orientation quirks
saveToPhotoAlbum: false, //Dont save to photostrip
targetWidth: 1024,
targetHeight: 1024
});
Thank you for your contribution, we will merge your PR to the develop branch for now and release it to Master when I finish the Base64 implementation for Android.
did two changes, first, I changed the default of US numberplate to EU numberplates. second, I made it possible to use base64 images as input.
I used these camera settings to retrieve the base64 string: