车牌识别的一个c语言代码简单可以较好识别
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 59049 2011-12-25 21:58 carccar.c
文件 3363 2011-06-06 17:59 carccar.dsp
文件 514 2011-06-06 18:28 carccar.dsw
文件 83600 2011-06-07 01:06 carccar.exe
文件 41984 2011-06-06 18:28 carccar.ncb
文件 76147 2011-06-07 01:06 carccar.o
文件 48640 2011-06-06 18:28 carccar.opt
文件 240 2011-06-06 18:28 carccar.plg
文件 4324 2011-06-04 17:30 carccarc.dsp
文件 516 2011-06-04 14:34 carccarc.dsw
文件 74752 2011-12-25 21:58 carccarc.ncb
文件 48640 2011-12-25 21:58 carccarc.opt
文件 7253 2011-12-25 21:58 carccarc.plg
文件 58749 2011-06-04 17:31 carcDebugcar.c
文件 262222 2011-06-06 18:24 carcDebugcar.exe
文件 301080 2011-06-06 18:24 carcDebugcar.ilk
文件 88274 2011-12-25 21:58 carcDebugcar.obj
文件 252228 2011-06-06 18:07 carcDebugcar.pch
文件 582656 2011-06-06 18:24 carcDebugcar.pdb
文件 0 2011-12-25 21:58 carcDebugcar.sbr
文件 91136 2011-12-25 21:58 carcDebugcarc.bsc
文件 249933 2011-12-25 21:58 carcDebugcarc.exe
文件 256260 2011-12-25 21:58 carcDebugcarc.ilk
文件 252544 2011-12-25 21:56 carcDebugcarc.pch
文件 566272 2011-12-25 21:58 carcDebugcarc.pdb
文件 59000 2011-06-06 18:18 carcDebugcarsave.txt
文件 57686 2011-06-06 17:09 carcDebugmain.c
文件 33792 2011-12-25 21:58 carcDebugvc60.idb
文件 53248 2011-12-25 21:58 carcDebugvc60.pdb
文件 10458 2011-06-04 14:29 carcgraphics.h
............此处省略97个文件信息
#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 carccar.c
文件 3363 2011-06-06 17:59 carccar.dsp
文件 514 2011-06-06 18:28 carccar.dsw
文件 83600 2011-06-07 01:06 carccar.exe
文件 41984 2011-06-06 18:28 carccar.ncb
文件 76147 2011-06-07 01:06 carccar.o
文件 48640 2011-06-06 18:28 carccar.opt
文件 240 2011-06-06 18:28 carccar.plg
文件 4324 2011-06-04 17:30 carccarc.dsp
文件 516 2011-06-04 14:34 carccarc.dsw
文件 74752 2011-12-25 21:58 carccarc.ncb
文件 48640 2011-12-25 21:58 carccarc.opt
文件 7253 2011-12-25 21:58 carccarc.plg
文件 58749 2011-06-04 17:31 carcDebugcar.c
文件 262222 2011-06-06 18:24 carcDebugcar.exe
文件 301080 2011-06-06 18:24 carcDebugcar.ilk
文件 88274 2011-12-25 21:58 carcDebugcar.obj
文件 252228 2011-06-06 18:07 carcDebugcar.pch
文件 582656 2011-06-06 18:24 carcDebugcar.pdb
文件 0 2011-12-25 21:58 carcDebugcar.sbr
文件 91136 2011-12-25 21:58 carcDebugcarc.bsc
文件 249933 2011-12-25 21:58 carcDebugcarc.exe
文件 256260 2011-12-25 21:58 carcDebugcarc.ilk
文件 252544 2011-12-25 21:56 carcDebugcarc.pch
文件 566272 2011-12-25 21:58 carcDebugcarc.pdb
文件 59000 2011-06-06 18:18 carcDebugcarsave.txt
文件 57686 2011-06-06 17:09 carcDebugmain.c
文件 33792 2011-12-25 21:58 carcDebugvc60.idb
文件 53248 2011-12-25 21:58 carcDebugvc60.pdb
文件 10458 2011-06-04 14:29 carcgraphics.h
............此处省略97个文件信息
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)