Closed NickolaiA closed 5 years ago
Thanks for reporting. The imagePath.lenght() > 0
is indeed a mistake, I will try to fix it this weekend and push a new update to NPM.
We have only tested the plugin with EU and US license plates, so I am not sure why AU
isn't working. The empty array means that no license plates could be detected on the image. If you have a look at the source, we don't use the Cloud API and handle everything locally on the device using the ALPR framework.
Understood. Thanks for the prompt reply. I saw the plugin has some configuration for au - au.patterns, lau.traineddata, etc. Do you need an example of Australian rego to try to find what could be wrong? I really need you plugin working with Australian regos.
Hi @NickolaiA,
We've just released a hotfix to fix the if statement for using file_uri with Android.
Also I've tested the Australian plates mentioned in this OpenALPR issue topic https://github.com/openalpr/openalpr/issues/200 And these work quite well for me, however it does emit the first V for both license plates (Not sure if this is intended). But as I'm not familiar with Australian plates I am not sure how many different ones there are and which parts of the plate are important. So I do not know if every plate works correctly.
The recognition options are provided by the official OpenALPR repo and are not something we've created ourselves, we simple provide a Cordova wrapper. So if not all Australian plates are supported by the given options you should create an issue on the official OpenALPR repository instead.
Hope this helped.
Kind regards, Melvin
I just added some instructions that work for me on my S8 with Android 8, check them here https://github.com/iMicknl/cordova-plugin-openalpr/issues/26#issuecomment-384866438
Closed due to inactivity. Please comment if the issue still persists and we will reopen.
Hi there,
I am trying to wring a test app to use this plugin it it seems it does not work on Android device (did not have a chance to check on iOS yet). Here is more details about my environment and code: Test device: Samsung Galaxy S8+ with Android 8.1 Android platform was added as
config.xml:
I added the following code to reeivedEvent method in index.js:
When the code is executed I receive a error message like "0: No image found for given file path". I found the following in OpenALPR.java:
It seems if statement has an issue. you must check imagePath.length() == 0 instead of > 0. Is ti correct? If so, can you please upload the fix?
I've applied a fix and if statement works correctly now, success call back is called with empty array (if you look at my code the second alert() displays 0).
Can you please help me what is wrong with it? Why rego cannot be recognised? Does you plugin send any request to external servers (for example, using Cloud API) to recognise rego or everything is recognised inside plugin? I tried online demo on openalpr.com web side and it recognises my rego correctly.
Thanks in advance for any help.