文件名称:chepaichuli
- 所属分类:
- 图形图像处理(光照,映射..)
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 2.6mb
- 下载次数:
- 0次
- 提 供 者:
- 吴*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
使用时打开此例题目录下pic中的图片,然后依次单击按钮“转”、“1”、“2”、“3”、“4”和“5”,就可以实现精确的车牌定位。
具体步骤
1.24位真彩色->256色灰度图。
2.预处理:中值滤波。
3.二值化:用一个初始阈值T对图像A进行二值化得到二值化图像B。
初始阈值T的确定方法是:选择阈值T=Gmax-(Gmax-Gmin)/3,Gmax和Gmin分别是最高、最低灰度值。
该阈值对不同牌照有一定的适应性,能够保证背景基本被置为0,以突出牌照区域。
4.削弱背景干扰。对图像B做简单的相邻像素灰度值相减,得到新的图像G,即Gi,j=|Pi,j-Pi,j-1|i=0,1,…,439 j=0,1,…,639Gi,0=Pi,0,左边缘直接赋值,不会影响整体效果。
5.用自定义模板进行中值滤波
区域灰度基本被赋值为0。考虑到文字是由许多短竖线组成,而背景噪声有一大部分是孤立噪声,用模板(1,1,1,1,1)T对G进行中值滤波,能够得到除掉了大部分干扰的图像C。
6.牌照搜索:利用水平投影法检测车牌水平位置,利用垂直投影法检测车牌垂直位置。
7.区域裁剪,截取车牌图像。
-Open this example use the directory pic in the picture, then click the button "turn", "1", "2", "3", "4" and "5", you can achieve precise positioning plate.
Concrete steps
1.24 True Color-> 256-color greyscale.
2. Preconditioning: median filter.
3. Binarization: an initial threshold T with the image binarization by A binary image B.
Determine the initial threshold T, is: Select the threshold value T = Gmax-(Gmax-Gmin)/3, Gmax and Gmin are the maximum and minimum gray value.
The threshold for a certain adaptability of different licenses, to ensure that the basic background is set to 0, to highlight the license area.
4. Weaken the background interference. B to do a simple image gray value of adjacent pixels subtracted to get a new image G, the Gi, j = | Pi, j-Pi, j-1 | i = 0,1, ..., 439 j = 0 , 1, ..., 639Gi, 0 = Pi, 0, the left edge of the direct assignment will not affect the overall results.
5. With a custom template for the median filter
具体步骤
1.24位真彩色->256色灰度图。
2.预处理:中值滤波。
3.二值化:用一个初始阈值T对图像A进行二值化得到二值化图像B。
初始阈值T的确定方法是:选择阈值T=Gmax-(Gmax-Gmin)/3,Gmax和Gmin分别是最高、最低灰度值。
该阈值对不同牌照有一定的适应性,能够保证背景基本被置为0,以突出牌照区域。
4.削弱背景干扰。对图像B做简单的相邻像素灰度值相减,得到新的图像G,即Gi,j=|Pi,j-Pi,j-1|i=0,1,…,439 j=0,1,…,639Gi,0=Pi,0,左边缘直接赋值,不会影响整体效果。
5.用自定义模板进行中值滤波
区域灰度基本被赋值为0。考虑到文字是由许多短竖线组成,而背景噪声有一大部分是孤立噪声,用模板(1,1,1,1,1)T对G进行中值滤波,能够得到除掉了大部分干扰的图像C。
6.牌照搜索:利用水平投影法检测车牌水平位置,利用垂直投影法检测车牌垂直位置。
7.区域裁剪,截取车牌图像。
-Open this example use the directory pic in the picture, then click the button "turn", "1", "2", "3", "4" and "5", you can achieve precise positioning plate.
Concrete steps
1.24 True Color-> 256-color greyscale.
2. Preconditioning: median filter.
3. Binarization: an initial threshold T with the image binarization by A binary image B.
Determine the initial threshold T, is: Select the threshold value T = Gmax-(Gmax-Gmin)/3, Gmax and Gmin are the maximum and minimum gray value.
The threshold for a certain adaptability of different licenses, to ensure that the basic background is set to 0, to highlight the license area.
4. Weaken the background interference. B to do a simple image gray value of adjacent pixels subtracted to get a new image G, the Gi, j = | Pi, j-Pi, j-1 | i = 0,1, ..., 439 j = 0 , 1, ..., 639Gi, 0 = Pi, 0, the left edge of the direct assignment will not affect the overall results.
5. With a custom template for the median filter
(系统自动生成,下载前可以参看下载内容)
下载文件列表
chap12\readme.txt
......\车牌媚位\ChildFrm.cpp
......\........\ChildFrm.h
......\........\ColorTable.h
......\........\DIBAPI.CPP
......\........\DIBAPI.H
......\........\edgecontour.cpp
......\........\edgecontour.h
......\........\MainFrm.cpp
......\........\MainFrm.h
......\........\ReadMe.txt
......\........\Resource.h
......\........\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
......\........\Debug\ChildFrm.obj
......\........\.....\DIBAPI.obj
......\........\.....\edgecontour.obj
......\........\.....\MainFrm.obj
......\........\.....\StdAfx.obj
......\........\.....\suanfa1.obj
......\........\.....\TemplateTrans.obj
......\........\.....\TypeRec.exe
......\........\.....\TypeRec.ilk
......\........\.....\TypeRec.obj
......\........\.....\TypeRec.pch
......\........\.....\TypeRec.pdb
......\........\.....\TypeRec.res
......\........\.....\TypeRecDoc.obj
......\........\.....\TypeRecView.obj
......\........\.....\vc60.idb
......\........\.....\vc60.pdb
......\........\pic\Img10_24.bmp
......\........\...\Img1_24.bmp
......\........\res\Toolbar.bmp
......\........\...\TypeRec.ico
......\........\...\TypeRec.rc2
......\........\...\TypeRecDoc.ico
......\........\Debug
......\........\pic
......\........\res
......\车牌媚位
chap12
......\车牌媚位\ChildFrm.cpp
......\........\ChildFrm.h
......\........\ColorTable.h
......\........\DIBAPI.CPP
......\........\DIBAPI.H
......\........\edgecontour.cpp
......\........\edgecontour.h
......\........\MainFrm.cpp
......\........\MainFrm.h
......\........\ReadMe.txt
......\........\Resource.h
......\........\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
......\........\Debug\ChildFrm.obj
......\........\.....\DIBAPI.obj
......\........\.....\edgecontour.obj
......\........\.....\MainFrm.obj
......\........\.....\StdAfx.obj
......\........\.....\suanfa1.obj
......\........\.....\TemplateTrans.obj
......\........\.....\TypeRec.exe
......\........\.....\TypeRec.ilk
......\........\.....\TypeRec.obj
......\........\.....\TypeRec.pch
......\........\.....\TypeRec.pdb
......\........\.....\TypeRec.res
......\........\.....\TypeRecDoc.obj
......\........\.....\TypeRecView.obj
......\........\.....\vc60.idb
......\........\.....\vc60.pdb
......\........\pic\Img10_24.bmp
......\........\...\Img1_24.bmp
......\........\res\Toolbar.bmp
......\........\...\TypeRec.ico
......\........\...\TypeRec.rc2
......\........\...\TypeRecDoc.ico
......\........\Debug
......\........\pic
......\........\res
......\车牌媚位
chap12