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
33 stars 23 forks source link

Library not supported #20

Closed hafiz013 closed 6 years ago

hafiz013 commented 6 years ago

Hai there, this library not support for car plate from my country malaysia. Is there way to get myt.xml for my country?

melvinversluijs commented 6 years ago

Hi @hafiz013,

You can change the country by editing the following line of code:

Android: src/android/OpenALPR.java @ line 74


Alpr alpr = new Alpr("eu", conf_file, runtime_dir);

iOS: src/ios/PlateScanner.mm @ line 27

delegate->setCountry("eu");

Just change eu to whatever country you want (only countries with a corresponding xml file will work).

We would like to enhance this in the future as explained in issues https://github.com/iMicknl/cordova-plugin-openalpr/issues/2 and https://github.com/iMicknl/cordova-plugin-openalpr/issues/9

If you have any more questions feel free to ask.

Cheers, Melvin

hafiz013 commented 6 years ago

I have checked that corresponding xml not supported to my country malaysia after change this

Alpr alpr = new Alpr("eu", conf_file, runtime_dir); and delegate->setCountry("eu");

iMicknl commented 6 years ago

Questions about country support belong in the OpenALPR repository, please ask them there.