Correct license plate with wrong letter read

27 views
Skip to first unread message

Lucas Doná Sfalcin

unread,
Jun 30, 2025, 10:06:35 AMJun 30
to doubango-ai
Good afternoon everyone! I'm trying to reduce the amount of garbage (incorrect plates) in my database by doing the following:
I look at the size of the plate with "warpedBox". Then I compare the two plates. The larger plate is theoretically the closest photo, so it probably has a better chance of being the correct one, but sometimes it isn't, like in the two attached photos.
Is there a better way to know which one would be the correct plate between these two photos?

Why does this happen?
I will have a database receiving license plate recognition from a thousand vehicles.

Thank you.
correct_PPB8268.jpg
error_PPB8266.jpg

Mamadou DIOP

unread,
Jun 30, 2025, 10:26:11 AMJun 30
to Lucas Doná Sfalcin, doubango-ai
Hi,

When I try with https://www.doubango.org/webapps/alpr/ both images are correctly recognised. I guess you’re using mobile version (quantised models) which are less accurate.
Licenses plates from Brazil (https://en.wikipedia.org/wiki/Vehicle_registration_plates_of_Brazil) have a fixed format depending on the version. 

1/ Use following regex: ([A-Z]{3}\d{1}[A-Z]{1}\d{2})|([A-Z]{3}\d{4})
2/ You can also use score


--
You received this message because you are subscribed to the Google Groups "doubango-ai" group.
To unsubscribe from this group and stop receiving emails from it, send an email to doubango-ai...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/doubango-ai/63eac56b-4459-4a5d-a0a2-eb1d02966cadn%40googlegroups.com.
<correct_PPB8268.jpg><error_PPB8266.jpg>

Message has been deleted

Lucas Doná Sfalcin

unread,
Jul 1, 2025, 2:54:23 PMJul 1
to doubango-ai
I use Alpr Doubango with a Raspberry pi 3, Raspberry pi Os Bookworm and Python with openCV.
In this specific case, the 2 photos attached, the score of the wrong plate was higher, so my algorithm would choose the wrong photo as well.

Mamadou DIOP

unread,
Jul 1, 2025, 2:55:32 PMJul 1
to Lucas Doná Sfalcin, doubango-ai
use regex first then score
share the result and score you get for each image

Reply all
Reply to author
Forward
0 new messages