JaidedAI / EasyOCR

Ready-to-use OCR with 80+ supported languages and all popular writing scripts including Latin, Chinese, Arabic, Devanagari, Cyrillic and etc.
https://www.jaided.ai
Apache License 2.0
24.46k stars 3.16k forks source link

EasyOCR can't detect 7 in number plate. #955

Open PixelDews opened 1 year ago

PixelDews commented 1 year ago

Capture Why is EasyOCR excluding number 7 from the detection? Without fail, it keeps excluding 7. Is there any recommendation to fix this issue?

Abecadarian commented 1 year ago

My guess would be that the grey strip on the left hand side of the number plate is close enough to the '7' digit here that it treats the '7' as part of the strip.

It might help if you tried segmenting the image to find the corners of the licence plate and then using a perspective transformation to get a top down view - that would reduce parallax distortion, which may be partly to blame for the problem. You find out more https://pyimagesearch.com/2014/08/25/4-point-opencv-getperspective-transform-example/

Other things that might help is setting the allowlist parameter to only allow numbers ('0123456789'), and experimenting with the contrast and text detection parameters.

masoudMZB commented 1 year ago

I think there is 2 problem :