資源簡介
這個車牌識別代碼是我的測試代碼?沒有包含其他的庫,可以直接運行在arm上和window上。在后續的開發中,我將完善它。
代碼片段和文件信息
#include?
#include?
#include?
//#include?
#include?
#include?
#include?
//#include?“cv.h“
//#include?“highgui.h“
#include?“math.h“
#define?pi?3.14
#define?RADIAN(angle)?((angle)*3.14/180.0)
#define?max(ab)????????????(((a)?>?(b))???(a)?:?(b))
#define?min(ab)????????????(((a)?(b))???(a)?:?(b))
typedef?unsigned?long???????DWORD;
typedef?int?????????????????BOOL;
typedef?unsigned?char???????BYTE;
typedef?unsigned?short??????WORD;
typedef?float???????????????FLOAT;
typedef?unsigned?char???????byte;
//#define?MAX(abc)?a>(b>c?b:c)?a:
struct?BMP_img
{
????WORD??bfType;
????DWORD?size;
DWORD?reser;
DWORD?header_length;
????DWORD?infoheader_length;
DWORD?width;
DWORD?height;
WORD??biplanes;
WORD??bmp_type;????????/*?8bit?24bit;?*/
DWORD?compres;
DWORD?datasize;
????DWORD?bixpm;
DWORD?biypm;
DWORD?clrused;
DWORD??relclrused;
????BYTE?*image;
????byte?*header_info;
DWORD?lineBytes;
};
struct?Bmp1{
DWORD?width;
DWORD?height;
byte?strc[67][800];
BYTE?*image;
int?p1[15];//xl
int?p2[15];//xr
int?p3[15];//yu
int?p4[15];//yd
int?up;
int?down;
????byte?strr[7][2500];
byte?string[7];
float?ang;//傾斜角度
};
struct?HSV{
??float?H;
??float?S;
??int?V;
};
?struct?RGB{
?byte?bitb;
?byte?bitg;
?byte?bitr;
?byte??re;
??????????????};
void?read_img(FILE?*infile?struct?BMP_img?*img);
//void?read_img(FILE?*infile?struct?BMP_img?*img);
void?displaytwo(struct?Bmp1?imgbyte?*srcBmpbyte?*dstBmpint?yuzhi);
unsigned?char??myGetMedianNum(unsigned?char?*?bArray?int?iFilterLen);
void?cuizhitouying(struct?Bmp1?*imgbyte?*temp);
void?sob(byte?*srcBmpint?widthint?heightint?type);
void?shuipingtouying(struct?Bmp1?*imgbyte?*temp);
//void?display(BMP_img?imgbyte?*temp);
void?grayScale(struct?BMP_img?imgbyte?*srcBmpbyte?*dstBmp);
void?junheng(struct?BMP_img?imgbyte?*srcBmpbyte?*dstBmp);
void?CutBmp(struct?BMP_img?imgstruct?Bmp1?*img1int?HLint?HHint?VLint?VH);
void?CutBmp1(struct?Bmp1?*img1int?HLint?HHint?VLint?VH);
void?testhsv(float?hfloat?sfloat?vbyte?rbyte?gbyte?b);
void?hsvzation(byte?*imagestruct?HSV?*hsvint?widthint?height);
void?location(byte?*imageint?widthint?heightint?yuzhiint?*HLint?*HHint?*VLint?*VH);
void?huidu(struct?Bmp1?imgbyte?*srcBmpbyte?*dstBmp);
void?bmptwo(struct?Bmp1?imgbyte?*srcBmpbyte?*dstBmpbyte?yuzhi);
void?Thiningtest(struct?BMP_img?imgbyte?*srcBmpbyte?*dstBmp);
void?Thining(byte?*srcBmpint?widthint?height);
void?ThinnerRosenfeld(void?*image?unsigned?long?lx?unsigned?long?ly);
void?delpoint(byte?*dstint?widthint?heightint?yuzhi);
void?Erosion(byte?*imageint?widthint?heightint?typeint?num);
void?deljunzao(byte?*dstint?widthint?heightint?yuzhi);
void?pingjun(byte?*dstint?widthint?height);
void?changeGray(byte?*srcBmpbyte?*dstBmpint?widthint?heightint?nWidthint?nHeight);
byte?*changeRGB(byte?*srcBmpint
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????59049??2011-12-25?21:58??carc\car.c
?????文件???????3363??2011-06-06?17:59??carc\car.dsp
?????文件????????514??2011-06-06?18:28??carc\car.dsw
?????文件??????83600??2011-06-07?01:06??carc\car.exe
?????文件??????41984??2011-06-06?18:28??carc\car.ncb
?????文件??????76147??2011-06-07?01:06??carc\car.o
?????文件??????48640??2011-06-06?18:28??carc\car.opt
?????文件????????240??2011-06-06?18:28??carc\car.plg
?????文件???????4324??2011-06-04?17:30??carc\carc.dsp
?????文件????????516??2011-06-04?14:34??carc\carc.dsw
?????文件??????74752??2011-12-25?21:58??carc\carc.ncb
?????文件??????48640??2011-12-25?21:58??carc\carc.opt
?????文件???????7253??2011-12-25?21:58??carc\carc.plg
?????文件??????58749??2011-06-04?17:31??carc\Debug\car.c
?????文件?????262222??2011-06-06?18:24??carc\Debug\car.exe
?????文件?????301080??2011-06-06?18:24??carc\Debug\car.ilk
?????文件??????88274??2011-12-25?21:58??carc\Debug\car.obj
?????文件?????252228??2011-06-06?18:07??carc\Debug\car.pch
?????文件?????582656??2011-06-06?18:24??carc\Debug\car.pdb
?????文件??????????0??2011-12-25?21:58??carc\Debug\car.sbr
?????文件??????91136??2011-12-25?21:58??carc\Debug\carc.bsc
?????文件?????249933??2011-12-25?21:58??carc\Debug\carc.exe
?????文件?????256260??2011-12-25?21:58??carc\Debug\carc.ilk
?????文件?????252544??2011-12-25?21:56??carc\Debug\carc.pch
?????文件?????566272??2011-12-25?21:58??carc\Debug\carc.pdb
?????文件??????59000??2011-06-06?18:18??carc\Debug\carsave.txt
?????文件??????57686??2011-06-06?17:09??carc\Debug\main.c
?????文件??????33792??2011-12-25?21:58??carc\Debug\vc60.idb
?????文件??????53248??2011-12-25?21:58??carc\Debug\vc60.pdb
?????文件??????10458??2011-06-04?14:29??carc\graphics.h
............此處省略97個文件信息
評論
共有 條評論