Hi Team ,
I am tried using cordova.plugins.OpenALPR scan method.I pass image from the camera to cordova.plugins.OpenALPR scan function form plugin and the function isn’t returning nothing and there is no error. below my code Please correct me Thanks adavance .
var options = {
quality: 100,
destinationType: Camera.DestinationType.FILE_URI,
sourceType: Camera.PictureSourceType.camera,
//allowEdit: true,
encodingType: Camera.EncodingType.JPEG,
popoverOptions: CameraPopoverOptions,
saveToPhotoAlbum: false,
correctOrientation: true
};
$cordovaCamera.getPicture(options).then(function (imageData) {
var image = document.getElementById('pic');
image.src = imageData;
$rootScope.data = image.src;
}, function (err) {
console.log(err);
});
$scope.fileUrl= $rootScope.data;
var filename = $scope.fileUrl.slice($scope.fileUrl.lastIndexOf(’/’) + 1);
var dataoptions =
{ country: “eu”, amount: 3 };
cordova.plugins.OpenALPR.scan(filename,dataoptions, function (data) {
console.log(data);
alert(data);
}, function (error) {
this.testInfo = error.code + ': ' + error.message;
console.log(error.code + ': ' + error.message)
});
Thanks,
Naveen