📄 lpr_h.h
字号:
/*
* Copyright (c) 2003, try2it.com
* All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option) any later
* version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
* details.
*
* You should have received a copy of the GNU General Public License along with
* this program; if not, write to the Free Software Foundation, Inc., 59 Temple
* Place - Suite 330, Boston, MA 02111-1307, USA.
*
* 文件名称:LPR_h.h
* 文件标识:LPR-02-02
* 摘要:牌照识别车牌识别调用头文件
*
* 当前版本:1.0
* 作者:王正平
* 开始日期:2003年09月15日
* 完成日期:
*/
#ifndef _LPR_H_H_
#define _LPR_H_H_
#ifdef LPR_EXPORTS
#define LPR_API __declspec(dllexport)
#else
#define LPR_API __declspec(dllimport)
#endif
#define CALLAGREEMENT __stdcall
#if (defined(__cplusplus) || defined(c_plusplus))
extern "C" {
#endif
// 类型定义
// 颜色
enum TColorID
{
LP_BLACK=0,
LP_BLUE,
LP_YELLOW,
LP_WHITE
};
// 矩形区域
typedef struct _MYRECT
{
int left;
int right;
int top;
int bottom;
}TMyRect, *PMyRect;
// 返回牌照信息
struct _LPInfo
{
char LPNum[MAX_LPCHAR_COUNT]; // 车牌号码
TColorID LPColor; // 车牌颜色
TMyRect LPRect; // 车牌在图像中的位置
}TLPInfo, *PLPInfo;
// 初始化动态链接库
LPR_API int CALLAGREEMENT InitLPRDll(HWND hWnd, WORD *Version);
// 获取视频,显示在窗口
LPR_API int CALLAGREEMENT GetLPRAVI();
// 识别车牌号码
LPR_API int CALLAGREEMENT GetLPR(PLPInfo pLPInfo, BYTE* pImgBuff);
// 设置参数(获取一个参数设置对话框)
LPR_API int CALLAGREEMENT SetLPR();
// 设置视频参数(获取一个参数设置对话框)
LPR_API int CALLAGREEMENT SetLPRCap();
// 设置识别参数(获取一个参数设置对话框)
LPR_API int CALLAGREEMENT SetLPRReco();
#if (defined(__cplusplus) || defined(c_plusplus))
}
#endif
#endif /* _LPR_H_H_ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -