longphungtuan94 / ALPR_System

Automatic License Plate Recognition System for Vietnamese Plates
Apache License 2.0
92 stars 42 forks source link

Germany license plate #2

Open edgarscr opened 4 years ago

edgarscr commented 4 years ago

Hello, im trying to add detection for license plate for germany cars, but i dont get response, can you help me what i can do?

image

look the image not correct license response.

longphungtuan94 commented 4 years ago

Hello @edgarscr . Sorry for the late response. There are 2 factors that could increase the detection performance.

  1. The kernel size in cv2.getStructuringElement(shape=cv2.MORPH_RECT, ksize=(22, 3)). You may have to figure out yourself to find a proper value, I chose the value above because the resolution of my camera was 1920x1080.
  2. The ratio (length/height) of the plate. Those of the Vietnamese Plates is 4.27, that's why I chose 6 as the upper threshold and 3 as the lower. P/s: The ratio has a small impact in choosing the kernel size too!

Hope it helps!!