Finding Licence Plates in an Image (Algorithm)
-
Upload
zafer-genc -
Category
Engineering
-
view
67 -
download
1
Transcript of Finding Licence Plates in an Image (Algorithm)
Zafer Genç
Goals
Description of Method
Conclusion and results
1. Using ‘Morphological Image Processing’ and other image processing methods to leave plate alone in the image
2. Finding the location points of the plate in that image
It consists of four steps :
Morphological Image Processing
Image Preprocessing
Finding Plate Location
Drawing Lines
This step makes the image prepared for morphological image processing.
Things are done in this step :
1. Reading image
2. Rotating image 180˚ degree
3. Converting RGB image to YIQ
4. Taking the Gray level of YIQ image (‘Y’ component)
5. Passing the gray image through the unsharp filter
6. Adding result of usharp filter process to the gray image
7. Converting gray image to the binary image with giving a threshold
8. Passing the binary image through LoGfilter to use later
9. Clearing the noise of the binary image with median filter
10. Making black of some parts that the plate can never exist , from up and down of the image
11. Clearing noise of the result image with median filter
The reason of image 180 ˚ degree is making the plate location more suitable to be found.Down parts of images are always less complex than the other parts of images.
There are two reasons of obtaining gray level from the YIQ . One is the YIQ gray level has less noise than gray level of RGB. Other reason is the contrast of the YIQ gray level is better than the RGB. The plate is black letters on white background ,so it is good to increase the contrast.
Another thing can increase contrast is sharpening the image with ‘unsharp filter’. After passing image through the unsharp filter , result is added to the image , therefore it can be more sharpen , and the contrast would be high.
Converting gray image to the binary image with
giving a threshold :
Places that an plate can not exist in upper and lower parts of the result binary image is painted black . Therefore, the area that is morphological image processing would be apply is made smaller . The smaller area is better for the morphological image processing, because the areas that would be eliminated later are decreased.
Erosion and dilation make important change on height and width of parts . They are not used . Only closing and opening are used.
Things are done in this step :
1. Closing operation with rectangle structural element ( size= [10 60] )
2. Opening operation with rectangle structural element ( size= [5 30] ) to remove small objects.
3. Filling the white areas from left to right and from right to left until finding a black pixel
4. again closing operation with structural element of rectangle (size [5,30])
5. opening operation with structural element of rectangle (size [10,60])
6. Result is passed through a median filter to get rid of noise.
7. Closing operation is done again with a rectangle (size [5,30]) .
8. z=(s3-edge); (edge is the result of LoG filter operation in preprocessing step)
9. reverse the final image . (z1=1-z );
First Closing operation with rectangle structural element ( size= [10 60] )
Opening operation with rectangle structural element ( size= [5 30] )
Filling the white areas from left to right and from right to left until finding a black pixel. If black pixel comes, then it is done in that line and jump to the next line. The purpose of this operation is increase the black areas and leaving less white areas ,therefore finding the plate would be easier , because the plate would be the one of the white areas. Also, the plate is between black pixels ,so it is not effected from this operation .
Second closing – opening operations :
z=(s3-edge) operation and taking the reverse
Because many images are experimented with this algorithm , it is necessary to define margin values when drawing lines
The algorithm works well with some images , but it does not work with some other images. Reason of this is the angle of plates, brightness of some images, different size of plates in images and the using same structural elements for all images.