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

Ios base64 support #23

Closed baukeroo closed 6 years ago

baukeroo commented 6 years ago

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
            });
melvinversluijs commented 6 years ago

Hi @baukeroo,

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.

Kind regards, Melvin