SandroMachado / openalpr-android

Android Automatic License Plate Recognition library (http://www.openalpr.com) ported for android.
Apache License 2.0
770 stars 272 forks source link

Error initializing OpenALPR #42

Closed kevinjpetersen closed 7 years ago

kevinjpetersen commented 7 years ago

I'm trying to use this in my Android App, everything compiles correctly and the files DOES exists in the APK. I confirmed this by doing a InputStream to the Config file and then read it. I could do that no problem.

These are my paths to my files, and then at the bottom it says the error.

image

This is my Config file.

image

This is my MainActivity

image

What could go wrong?

kevinjpetersen commented 7 years ago

Appearently this method, doesn't actually work:

OpenALPR.Factory.create(MainActivity.this, ANDROID_DATA_DIR).recognize(testImage, 10);

Because when I change it to this:

OpenALPR.Factory.create(MainActivity.this, ANDROID_DATA_DIR).recognizeWithCountryRegionNConfig("eu", "", testImage, openAlprConfFile, 10);

It works like a charm

Closing.

NoumanBaig commented 6 years ago

Hi, I got this error while i changed to india in config file.what can i do for that?