Description: Use the open directory examples the image in the PIC, which in turn click button "turn", "1", "2", "3" and "4" and "5", can achieve precise license plate location.
Specific steps
1.24 a true color-> 256 color gray image.
2. Pretreatment: median filter.
3. Binary: with an initial threshold value of the image on A T binary get binary image B.
The initial threshold value method to determine the T is: select threshold T = Gmax-(Gmax-Gmin)/3, Gmax and Gmin respectively is the maximum and minimum gray values.
The threshold for different licence have certain adaptability, can guarantee that background basic is set to 0, to highlight licence area.
4. Weaken the background interference. Image B do simple adjacent pixels XiangJian grey value, get the new image G, namely Gi, j = | Pi, j-Pi, j-1 | I = 0, 1,... , 439 J = 0, 1,..., 639 Gi, 0 = Pi, 0, the left edge direct assignment, and will not affect the overall effect.
5. Use custom templates by median filter
To Search:
File list (Check if you may need any files):
车牌定位
........\ChildFrm.cpp
........\ChildFrm.h
........\ColorTable.h
........\Debug
........\.....\TypeRec.exe
........\DIBAPI.CPP
........\DIBAPI.H
........\edgecontour.cpp
........\edgecontour.h
........\MainFrm.cpp
........\MainFrm.h
........\pic
........\...\Img10_24.bmp
........\...\Img1_24.bmp
........\...\Thumbs.db
........\ReadMe.txt
........\res
........\Resource.h
........\res\Toolbar.bmp
........\...\TypeRec.ico
........\...\TypeRec.rc2
........\...\TypeRecDoc.ico
........\StdAfx.cpp
........\StdAfx.h
........\suanfa1.cpp
........\suanfa1.h
........\TemplateTrans.cpp
........\TemplateTrans.h
........\TypeRec.aps
........\TypeRec.clw
........\TypeRec.cpp
........\TypeRec.dsp
........\TypeRec.dsw
........\TypeRec.h
........\TypeRec.ncb
........\TypeRec.opt
........\TypeRec.plg
........\TypeRec.rc
........\TypeRec.rc.bak
........\TypeRecDoc.cpp
........\TypeRecDoc.h
........\TypeRecView.cpp
........\TypeRecView.h