文件名称:chepaichuli
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小: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
chap12/车牌媚位/ChildFrm.cpp
chap12/车牌媚位/ChildFrm.h
chap12/车牌媚位/ColorTable.h
chap12/车牌媚位/DIBAPI.CPP
chap12/车牌媚位/DIBAPI.H
chap12/车牌媚位/edgecontour.cpp
chap12/车牌媚位/edgecontour.h
chap12/车牌媚位/MainFrm.cpp
chap12/车牌媚位/MainFrm.h
chap12/车牌媚位/ReadMe.txt
chap12/车牌媚位/Resource.h
chap12/车牌媚位/StdAfx.cpp
chap12/车牌媚位/StdAfx.h
chap12/车牌媚位/suanfa1.cpp
chap12/车牌媚位/suanfa1.h
chap12/车牌媚位/TemplateTrans.cpp
chap12/车牌媚位/TemplateTrans.h
chap12/车牌媚位/TypeRec.aps
chap12/车牌媚位/TypeRec.clw
chap12/车牌媚位/TypeRec.cpp
chap12/车牌媚位/TypeRec.dsp
chap12/车牌媚位/TypeRec.dsw
chap12/车牌媚位/TypeRec.h
chap12/车牌媚位/TypeRec.ncb
chap12/车牌媚位/TypeRec.opt
chap12/车牌媚位/TypeRec.plg
chap12/车牌媚位/TypeRec.rc
chap12/车牌媚位/TypeRec.rc.bak
chap12/车牌媚位/TypeRecDoc.cpp
chap12/车牌媚位/TypeRecDoc.h
chap12/车牌媚位/TypeRecView.cpp
chap12/车牌媚位/TypeRecView.h
chap12/车牌媚位/Debug/ChildFrm.obj
chap12/车牌媚位/Debug/DIBAPI.obj
chap12/车牌媚位/Debug/edgecontour.obj
chap12/车牌媚位/Debug/MainFrm.obj
chap12/车牌媚位/Debug/StdAfx.obj
chap12/车牌媚位/Debug/suanfa1.obj
chap12/车牌媚位/Debug/TemplateTrans.obj
chap12/车牌媚位/Debug/TypeRec.exe
chap12/车牌媚位/Debug/TypeRec.ilk
chap12/车牌媚位/Debug/TypeRec.obj
chap12/车牌媚位/Debug/TypeRec.pch
chap12/车牌媚位/Debug/TypeRec.pdb
chap12/车牌媚位/Debug/TypeRec.res
chap12/车牌媚位/Debug/TypeRecDoc.obj
chap12/车牌媚位/Debug/TypeRecView.obj
chap12/车牌媚位/Debug/vc60.idb
chap12/车牌媚位/Debug/vc60.pdb
chap12/车牌媚位/pic/Img10_24.bmp
chap12/车牌媚位/pic/Img1_24.bmp
chap12/车牌媚位/res/Toolbar.bmp
chap12/车牌媚位/res/TypeRec.ico
chap12/车牌媚位/res/TypeRec.rc2
chap12/车牌媚位/res/TypeRecDoc.ico
chap12/车牌媚位/Debug
chap12/车牌媚位/pic
chap12/车牌媚位/res
chap12/车牌媚位
chap12
chap12/车牌媚位/ChildFrm.cpp
chap12/车牌媚位/ChildFrm.h
chap12/车牌媚位/ColorTable.h
chap12/车牌媚位/DIBAPI.CPP
chap12/车牌媚位/DIBAPI.H
chap12/车牌媚位/edgecontour.cpp
chap12/车牌媚位/edgecontour.h
chap12/车牌媚位/MainFrm.cpp
chap12/车牌媚位/MainFrm.h
chap12/车牌媚位/ReadMe.txt
chap12/车牌媚位/Resource.h
chap12/车牌媚位/StdAfx.cpp
chap12/车牌媚位/StdAfx.h
chap12/车牌媚位/suanfa1.cpp
chap12/车牌媚位/suanfa1.h
chap12/车牌媚位/TemplateTrans.cpp
chap12/车牌媚位/TemplateTrans.h
chap12/车牌媚位/TypeRec.aps
chap12/车牌媚位/TypeRec.clw
chap12/车牌媚位/TypeRec.cpp
chap12/车牌媚位/TypeRec.dsp
chap12/车牌媚位/TypeRec.dsw
chap12/车牌媚位/TypeRec.h
chap12/车牌媚位/TypeRec.ncb
chap12/车牌媚位/TypeRec.opt
chap12/车牌媚位/TypeRec.plg
chap12/车牌媚位/TypeRec.rc
chap12/车牌媚位/TypeRec.rc.bak
chap12/车牌媚位/TypeRecDoc.cpp
chap12/车牌媚位/TypeRecDoc.h
chap12/车牌媚位/TypeRecView.cpp
chap12/车牌媚位/TypeRecView.h
chap12/车牌媚位/Debug/ChildFrm.obj
chap12/车牌媚位/Debug/DIBAPI.obj
chap12/车牌媚位/Debug/edgecontour.obj
chap12/车牌媚位/Debug/MainFrm.obj
chap12/车牌媚位/Debug/StdAfx.obj
chap12/车牌媚位/Debug/suanfa1.obj
chap12/车牌媚位/Debug/TemplateTrans.obj
chap12/车牌媚位/Debug/TypeRec.exe
chap12/车牌媚位/Debug/TypeRec.ilk
chap12/车牌媚位/Debug/TypeRec.obj
chap12/车牌媚位/Debug/TypeRec.pch
chap12/车牌媚位/Debug/TypeRec.pdb
chap12/车牌媚位/Debug/TypeRec.res
chap12/车牌媚位/Debug/TypeRecDoc.obj
chap12/车牌媚位/Debug/TypeRecView.obj
chap12/车牌媚位/Debug/vc60.idb
chap12/车牌媚位/Debug/vc60.pdb
chap12/车牌媚位/pic/Img10_24.bmp
chap12/车牌媚位/pic/Img1_24.bmp
chap12/车牌媚位/res/Toolbar.bmp
chap12/车牌媚位/res/TypeRec.ico
chap12/车牌媚位/res/TypeRec.rc2
chap12/车牌媚位/res/TypeRecDoc.ico
chap12/车牌媚位/Debug
chap12/车牌媚位/pic
chap12/车牌媚位/res
chap12/车牌媚位
chap12
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.