openalpr-android icon indicating copy to clipboard operation
openalpr-android copied to clipboard

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

Open jenishkumar88 opened this issue 7 years ago • 8 comments

jenishkumar88 avatar Jan 11 '18 16:01 jenishkumar88

Did you follow the configuration steps?

SandroMachado avatar Jan 22 '18 00:01 SandroMachado

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

IPrototypeI avatar Jan 25 '18 22:01 IPrototypeI

Did you test the apk available in the releases tab?

SandroMachado avatar Jan 27 '18 00:01 SandroMachado

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

IPrototypeI avatar Jan 27 '18 11:01 IPrototypeI

Can you please past here the code you change?

SandroMachado avatar Jan 30 '18 14:01 SandroMachado

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 ?

IPrototypeI avatar Jan 30 '18 15:01 IPrototypeI

@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

umair-io avatar Jun 03 '18 01:06 umair-io

@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.

collinspeight avatar Jan 17 '19 00:01 collinspeight