文件名称:Licensenumber
- 所属分类:
- GDI/图象编程
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 2.61mb
- 下载次数:
- 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.区域裁剪,截取车牌图像。
-Help
Example use this directory to open pic in the picture, and then click the button "switch", "1", "2", "3", "4" and "5", you can achieve precise positioning of the plate.
Concrete steps
1.24 True Color-> 256 color grayscale.
2. Preconditioning: median filter.
3. Binarization: with an initial threshold T for the image binarization A binary image to be B.
The initial determination of the threshold T is: to choose the threshold T = Gmax-(Gmax-Gmin)/3, Gmax and Gmin are the highest, lowest gray value.
The thresholds for different licenses have a certain adaptability, to ensure that the basic background to be home for 0, in order to highlight the regional licenses.
4. Weaken the background interference. B to do a simple image of the adjacent pixels by gray values, a new image G, that is, 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. Used in custom template filte
使用时打开此例题目录下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.区域裁剪,截取车牌图像。
-Help
Example use this directory to open pic in the picture, and then click the button "switch", "1", "2", "3", "4" and "5", you can achieve precise positioning of the plate.
Concrete steps
1.24 True Color-> 256 color grayscale.
2. Preconditioning: median filter.
3. Binarization: with an initial threshold T for the image binarization A binary image to be B.
The initial determination of the threshold T is: to choose the threshold T = Gmax-(Gmax-Gmin)/3, Gmax and Gmin are the highest, lowest gray value.
The thresholds for different licenses have a certain adaptability, to ensure that the basic background to be home for 0, in order to highlight the regional licenses.
4. Weaken the background interference. B to do a simple image of the adjacent pixels by gray values, a new image G, that is, 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. Used in custom template filte
(系统自动生成,下载前可以参看下载内容)
下载文件列表
车牌
....\ChildFrm.cpp
....\ChildFrm.h
....\ColorTable.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
....\DIBAPI.CPP
....\DIBAPI.H
....\edgecontour.cpp
....\edgecontour.h
....\MainFrm.cpp
....\MainFrm.h
....\pic
....\...\Thumbs.db
....\ReadMe.txt
....\res
....\...\TypeRec.rc2
....\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
....\ChildFrm.cpp
....\ChildFrm.h
....\ColorTable.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
....\DIBAPI.CPP
....\DIBAPI.H
....\edgecontour.cpp
....\edgecontour.h
....\MainFrm.cpp
....\MainFrm.h
....\pic
....\...\Thumbs.db
....\ReadMe.txt
....\res
....\...\TypeRec.rc2
....\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