文件名称:cardrecognition
介绍说明--下载内容均来自于网络,请自行研究使用
车牌定位使用说明
使用时打开此例题目录下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.区域裁剪,截取车牌图像。 -This file contains a summary of what you will find in each of the files that
make up your TypeRec application.
TypeRec.dsp
This file (the project file) contains information at the project level and
is used to build a single project or subproject. Other users can share the
project (.dsp) file, but they should export the makefiles locally.
TypeRec.h
This is the main header file for the application. It includes other
project specific headers (including Resource.h) and declares the
CTypeRecApp application class.
TypeRec.cpp
This is the main application source file that contains the application
class CTypeRecApp.
TypeRec.rc
This is a listing of all of the Microsoft Windows resources that the
program uses. It includes the icons, bitmaps, and cursors that are stored
in the RES subdirectory. This file can be directly edited in Microsoft
Visual C++.
TypeRec.clw
This file contains information used by ClassWizard to
使用时打开此例题目录下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.区域裁剪,截取车牌图像。 -This file contains a summary of what you will find in each of the files that
make up your TypeRec application.
TypeRec.dsp
This file (the project file) contains information at the project level and
is used to build a single project or subproject. Other users can share the
project (.dsp) file, but they should export the makefiles locally.
TypeRec.h
This is the main header file for the application. It includes other
project specific headers (including Resource.h) and declares the
CTypeRecApp application class.
TypeRec.cpp
This is the main application source file that contains the application
class CTypeRecApp.
TypeRec.rc
This is a listing of all of the Microsoft Windows resources that the
program uses. It includes the icons, bitmaps, and cursors that are stored
in the RES subdirectory. This file can be directly edited in Microsoft
Visual C++.
TypeRec.clw
This file contains information used by ClassWizard to
(系统自动生成,下载前可以参看下载内容)
下载文件列表
车牌定位
........\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\Thumbs.db
........\...\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
........\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\Thumbs.db
........\...\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