Closed jzeferino closed 6 years ago
Hi @jzeferino,
You need to add the country in the second field of the method recognizeWithCountryRegionNConfig
. Change your code to:
String result = OpenALPR.Factory.create(MainActivity.this, ANDROID_DATA_DIR).recognizeWithCountryRegionNConfig("eu", "pt", destination.getAbsolutePath(), openAlprConfFile, 10);
Please let me know if that works.
Thank you for the reply @SandroMachado.
I've tested with String result = OpenALPR.Factory.create(MainActivity.this, ANDROID_DATA_DIR).recognizeWithCountryRegionNConfig("eu", "pt", destination.getAbsolutePath(), openAlprConfFile, 10);
and i'm taking photos with the fone from my monitor and I was unable to make it work. Not even one license plate.
Im using samsung galaxy edge 6.
You can try with this for example.
Using the demo app, I am getting this results:
@SandroMachado it still misses the 27
but, its better than here.
What did you changed in the sample?
What I said before:
String result = OpenALPR.Factory.create(MainActivity.this, ANDROID_DATA_DIR).recognizeWithCountryRegionNConfig("eu", "pt", destination.getAbsolutePath(), openAlprConfFile, 10);
So probably you are missing other thing, like correctly linking the library. What is the value of the response?
@SandroMachado I just cloned the repo and run the sample with that changes above.
I have no ideia why it does not work. Don't you get any error? Just an empty set of results?
@SandroMachado i'm getting the toast saying that nothing can be detected.
Hi! I managed to make the sample application work, but some plate numbers have changed in Romania. The "default format" is "XX XX XXX" but since there are so many cars that the last 5 characters were not enough, there are also "XX XXX XXX". (the middle section from 2 to 3 digits). For ex: BH 09 KSR and BH 121 KSR. Could somebody help me to modify the configuration file?
There is only one situation when there is only one first character instead of 2, the capital of Romania, which is "B" as you can see on the image below
Thank you!
@arnoldcoder can you share what did you changed in the sample to make it work?
I created a new android project, and followed the instructions from the project page. (adding dependencies in build.gradle, etc..) Then I copied the sample project's mainActivity and layout, resources, did the changes in AndroidManifest too... (pm your email, and I'll send you the code)
@arnoldcoder is better to create a public repo for everyone interested.
@arnoldcoder Can you explain how to import the library?
Have you added the WRITE_EXTERNAL_STORAGE permission to the Manifest file? Here is my demo project
I think the issue is resolved. Please let me know if something changes.
Hi there, im running the sample and I changed the:
String result = OpenALPR.Factory.create(MainActivity.this, ANDROID_DATA_DIR).recognizeWithCountryRegionNConfig("us", "", destination.getAbsolutePath(), openAlprConfFile, 10);
to
String result = OpenALPR.Factory.create(MainActivity.this, ANDROID_DATA_DIR).recognizeWithCountryRegionNConfig("eu", "", destination.getAbsolutePath(), openAlprConfFile, 10);
But it can't detect any plates. What am I missing?