• 大小: 15.14MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-06-20
  • 语言: 其他
  • 标签: opencv  车牌识别  

资源简介

可以正常运行,只是供开发车牌识别的项目做了一个开端,还有很多的工作要做 车牌定位的准确度不高,字符切割也不高,字符匹配准确度也不高,有待大家去完善

资源截图

代码片段和文件信息

#include “cv.h“
#include “highgui.h“
#include “cxcore.h“
#include 
#include 
#include 
#include 
#include 
using namespace std;

#define POINT_X  18                                           // 水平方向不重叠点                        
#define POINT_Y  2                                            // 垂直方向不重叠点                            
#define WITH_X 0.1                                            // 水平方向车牌在图区域     
#define WITH_Y 0.2                                            // 垂直方向车牌在图区域     
#define HIGH_WITH_CAR   4.8   //(440/85)       // 小车的宽高比  440/140    
#define CHARACTER 15
#define TEMPLETENUM  43
CvPoint pt[4];
IplImage* img = 0;
IplImage* img0 = 0;
IplImage* img2=0;
IplImage *src=NULL;
IplImage *pImgCanny=NULL;  //二值化的图                    
IplImage *pImgResize=NULL;   //归一化的车牌区域灰度图                  
IplImage *pImgCharOne=NULL;   //字符图片             
IplImage *pImgCharTwo=NULL;
IplImage *pImgCharThree=NULL;
IplImage *pImgCharFour=NULL;
IplImage *pImgCharFive=NULL;
IplImage *pImgCharSix=NULL;
IplImage *pImgCharSeven=NULL;

CvRect res;
const int Num_Templete[TEMPLETENUM][CHARACTER]=
{
{1619101210101518110322333}     //0
{91110101010910792220212}       //1
{181931810102322123422768}      //2
{192111144201822129224667}      //3
{218112220211118123242675}      //4
{231920129201822143244666}      //5
{61317815201820117224576}       //6
{21210208129111022222815}       //7
{1718181914201720143424666}     //8
{16181521719137116322665}       //9
{1010161620201819129242836}     //A
{2420201922222420171484666}     //B
{18192042081721127324444}       //C
{2319112012202221148333444}     //D
{23192192282323148222666}       //E
{2517209228190120222444}        //F
{1718221412241821146474466}     //G
{1420182217221620149414222}     //H
{0170203201822100224222}        //J
{19202610202020221574443511}    //K
{2002002002520105222222}        //L
{2010271720102214140133415}     //M
{2112251726121818149353556}     //N 
{23191820218220131332444}       //P
{1819201026151821147334575}     //Q
{2619211821172021163434465}     //R
{181818108171722128434666}      //S
{22181010101010101002223322}    //T
{1812201020101921130333222}     //U
{201920201514910127442918}      //V
{21252628161621191726241307}    //W
{21211313121122211344248010}    //X
{2120101110101011103322526}     //Y
{21235151552420128222887}       //Z
{1314101010

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2014-03-06 11:15  testchepai\
     目录           0  2014-03-05 16:23  testchepai\Debug\
     文件       69632  2014-03-05 16:23  testchepai\Debug\testchepai.exe
     文件      515324  2014-03-05 16:23  testchepai\Debug\testchepai.ilk
     文件     1330176  2014-03-05 16:23  testchepai\Debug\testchepai.pdb
     目录           0  2014-03-05 15:51  testchepai\ipch\
     目录           0  2014-03-05 15:51  testchepai\ipch\testchepai-418d0a1d\
     文件    53280768  2014-03-05 15:51  testchepai\ipch\testchepai-418d0a1d\testchepai-a3649eb6.ipch
     目录           0  2014-03-05 16:01  testchepai\testchepai\
     文件    13586432  2014-03-05 21:57  testchepai\testchepai.sdf
     文件         897  2014-03-05 15:51  testchepai\testchepai.sln
     文件       12288  2014-03-05 21:57  testchepai\testchepai.suo
     文件       17747  2011-05-23 20:58  testchepai\testchepai\car1.jpg
     文件       49206  2011-05-23 20:58  testchepai\testchepai\car2.jpg
     文件       26456  2011-05-23 20:58  testchepai\testchepai\car3.jpg
     文件        7308  2011-05-23 20:58  testchepai\testchepai\car4.jpg
     文件        4140  2011-05-23 20:58  testchepai\testchepai\car5.jpg
     目录           0  2014-03-05 16:23  testchepai\testchepai\Debug\
     文件         536  2014-03-05 16:23  testchepai\testchepai\Debug\cl.command.1.tlog
     文件       12488  2014-03-05 16:23  testchepai\testchepai\Debug\CL.read.1.tlog
     文件         300  2014-03-05 16:23  testchepai\testchepai\Debug\CL.write.1.tlog
     文件        2606  2014-03-05 16:23  testchepai\testchepai\Debug\link.command.1.tlog
     文件        6206  2014-03-05 16:23  testchepai\testchepai\Debug\link.read.1.tlog
     文件         540  2014-03-05 16:23  testchepai\testchepai\Debug\link.write.1.tlog
     文件         436  2014-03-05 16:23  testchepai\testchepai\Debug\mt.command.1.tlog
     文件         714  2014-03-05 16:23  testchepai\testchepai\Debug\mt.read.1.tlog
     文件         254  2014-03-05 16:23  testchepai\testchepai\Debug\mt.write.1.tlog
     文件      207859  2014-03-05 16:23  testchepai\testchepai\Debug\test.obj
     文件         381  2014-03-05 16:23  testchepai\testchepai\Debug\testchepai.exe.intermediate.manifest
     文件          51  2014-03-05 16:23  testchepai\testchepai\Debug\testchepai.lastbuildstate
     文件        5223  2014-03-05 16:23  testchepai\testchepai\Debug\testchepai.log
............此处省略7个文件信息

评论

共有 条评论