资源简介
车牌识别的一个c语言代码简单可以较好识别

代码片段和文件信息
#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个文件信息
相关资源
- 操作系统c语言模拟文件管理系统844
- C语言开发实战宝典
- C++中头文件与源文件的作用详解
- C语言代码高亮html输出工具
- 猜数字游戏 c语言代码
- C语言课程设计
- 数字电位器C语言程序
- CCS FFT c语言算法
- 使用C语言编写的病房管理系统
- 通信过程中的RS编译码程序(c语言)
- 计算机二级C语言上机填空,改错,编
- 用回溯法解决八皇后问题C语言实现
- 简易教务管理系统c语言开发文档
- 操作系统课设 读写者问题 c语言实现
- 小波变换算法 c语言版
- C流程图生成器,用C语言代码 生成C语
- 3des加密算法C语言实现
- 简单的C语言点对点聊天程序
- 单片机c语言源程序(51定时器 八个按
- 个人日常财务管理系统(C语言)
- c语言电子商务系统
- 小甲鱼C语言课件 源代码
- 将图片转换为C语言数组的程序
- C语言实现的一个内存泄漏检测程序
- DES加密算法C语言实现
- LINUX下命令行界面的C语言细胞游戏
- 用单片机控制蜂鸣器播放旋律程序(
- 学校超市选址问题(数据结构C语言版
- 电子时钟 有C语言程序,PROTEUS仿真图
- 尚观培训linux许巍老师关于c语言的课
评论
共有 条评论