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

My app is always going in "it was not possible to detect the license plate" #65

Open jenishkumar88 opened 6 years ago

SandroMachado commented 6 years ago

Did you follow the configuration steps?

IPrototypeI commented 6 years ago

Same for me I even test the demo app :( any suggestions ? Device is Samsung S5

SandroMachado commented 6 years ago

Did you test the apk available in the releases tab?

IPrototypeI commented 6 years ago

I did and it works so fare with this numberplate https://fiu-assets-2-syitaetz61hl2sa.stackpathdns.com/static/use-media-items/22/21303/full-1462x736/569736f3/ca2011-2.jpeg?resolution=0

But I have a Problem with this number plates even if I change the region to EU https://hsvcmsroot-v.azureedge.net/fileadmin/user_upload/Bilder_HSV.de/Bundesliga/Verein/Nummernschild901x427.jpg

or

http://kreutzundquer.de/wp-content/uploads/2014/11/fun.jpg

SandroMachado commented 6 years ago

Can you please past here the code you change?

IPrototypeI commented 6 years ago

I changed the code recognizeWithCountryRegionNConfig("us", "", image.getAbsolutePath(), openAlprConfFile, 10);

To

recognizeWithCountryRegionNConfig("eu", "", image.getAbsolutePath(), openAlprConfFile, 10);

So only the parameter us to eu do you have any suggestions ?

umair-io commented 6 years ago

@IPrototypeI Can you try taking the picture in landscape mode. For me, it only does recognition on landscape pictures and not on portrait. @SandroMachado Is this by design? Is it possible for the app to recognize plates from portrait images by changing the config file? Thanks

collinspeight commented 5 years ago

@umair-io @IPrototypeI If the issue is only while taking pictures in portrait mode for you, there is a known bug with the MediaStore.ACTION_IMAGE_CAPTURE on some devices where the image is rotated after being taken. If an image is rotated incorrectly before being fed into OpenALPR, you will not get proper results back.