基于OpenCV的车牌识别 可以定位车牌区域,相关文档,详细解释,源代码等都有,但是需要自己下载OpenCV 本项目用的是2.4.9
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2015-10-23 09:03 源码
目录 0 2018-07-06 11:48 源码MFCPlateRecognition
目录 0 2018-07-06 11:48 源码MFCPlateRecognitionDebug
文件 1506304 2014-04-15 17:19 源码MFCPlateRecognitionDebugopencv_calib3d249d.dll
文件 1145344 2014-04-15 17:17 源码MFCPlateRecognitionDebugopencv_contrib249.dll
文件 2360320 2014-04-15 17:20 源码MFCPlateRecognitionDebugopencv_contrib249d.dll
文件 2136064 2014-04-15 17:14 源码MFCPlateRecognitionDebugopencv_core249.dll
文件 3515392 2014-04-15 17:18 源码MFCPlateRecognitionDebugopencv_core249d.dll
文件 721408 2014-04-15 17:16 源码MFCPlateRecognitionDebugopencv_features2d249.dll
文件 1464832 2014-04-15 17:19 源码MFCPlateRecognitionDebugopencv_features2d249d.dll
文件 10535057 2013-12-20 18:32 源码MFCPlateRecognitionDebugopencv_ffmpeg249.dll
文件 520704 2014-04-15 17:14 源码MFCPlateRecognitionDebugopencv_flann249.dll
文件 1163264 2014-04-15 17:18 源码MFCPlateRecognitionDebugopencv_flann249d.dll
文件 430592 2014-04-15 17:17 源码MFCPlateRecognitionDebugopencv_gpu249.dll
文件 877056 2014-04-15 17:20 源码MFCPlateRecognitionDebugopencv_gpu249d.dll
文件 2146816 2014-04-15 17:15 源码MFCPlateRecognitionDebugopencv_highgui249.dll
文件 3697152 2014-04-15 17:19 源码MFCPlateRecognitionDebugopencv_highgui249d.dll
文件 1876480 2014-04-15 17:14 源码MFCPlateRecognitionDebugopencv_imgproc249.dll
文件 3144192 2014-04-15 17:18 源码MFCPlateRecognitionDebugopencv_imgproc249d.dll
文件 1239040 2014-04-15 17:16 源码MFCPlateRecognitionDebugopencv_legacy249.dll
文件 2627072 2014-04-15 17:19 源码MFCPlateRecognitionDebugopencv_legacy249d.dll
文件 505344 2014-04-15 17:14 源码MFCPlateRecognitionDebugopencv_ml249.dll
文件 1048064 2014-04-15 17:18 源码MFCPlateRecognitionDebugopencv_ml249d.dll
文件 555008 2014-04-15 17:17 源码MFCPlateRecognitionDebugopencv_nonfree249.dll
文件 1074176 2014-04-15 17:20 源码MFCPlateRecognitionDebugopencv_nonfree249d.dll
文件 654336 2014-04-15 17:15 源码MFCPlateRecognitionDebugopencv_objdetect249.dll
文件 1432576 2014-04-15 17:19 源码MFCPlateRecognitionDebugopencv_objdetect249d.dll
文件 2099200 2014-04-15 17:17 源码MFCPlateRecognitionDebugopencv_ocl249.dll
文件 3508736 2014-04-15 17:19 源码MFCPlateRecognitionDebugopencv_ocl249d.dll
文件 198656 2014-04-15 17:14 源码MFCPlateRecognitionDebugopencv_photo249.dll
文件 451584 2014-04-15 17:18 源码MFCPlateRecognitionDebugopencv_photo249d.dll
............此处省略254个文件信息
#include “StdAfx.h“
#include “CvvImage.h“
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CV_INLINE RECT NormalizeRect( RECT r );
CV_INLINE RECT NormalizeRect( RECT r )
{
int t;
if( r.left > r.right )
{
t = r.left;
r.left = r.right;
r.right = t;
}
if( r.top > r.bottom )
{
t = r.top;
r.top = r.bottom;
r.bottom = t;
}
return r;
}
CV_INLINE CvRect RectToCvRect( RECT sr );
CV_INLINE CvRect RectToCvRect( RECT sr )
{
sr = NormalizeRect( sr );
return cvRect( sr.left sr.top sr.right - sr.left sr.bottom - sr.top );
}
CV_INLINE RECT CvRectToRect( CvRect sr );
CV_INLINE RECT CvRectToRect( CvRect sr )
{
RECT dr;
dr.left = sr.x;
dr.top = sr.y;
dr.right = sr.x + sr.width;
dr.bottom = sr.y + sr.height;
return dr;
}
CV_INLINE IplROI RectToROI( RECT r );
CV_INLINE IplROI RectToROI( RECT r )
{
IplROI roi;
r = NormalizeRect( r );
roi.xOffset = r.left;
roi.yOffset = r.top;
roi.width = r.right - r.left;
roi.height = r.bottom - r.top;
roi.coi = 0;
return roi;
}
void FillBitmapInfo( BITMAPINFO* bmi int width int height int bpp int origin )
{
assert( bmi && width >= 0 && height >= 0 && (bpp == 8 || bpp == 24 || bpp == 32));
BITMAPINFOHEADER* bmih = &(bmi->bmiHeader);
memset( bmih 0 sizeof(*bmih));
bmih->biSize = sizeof(BITMAPINFOHEADER);
bmih->biWidth = width;
bmih->biHeight = origin ? abs(height) : -abs(height);
bmih->biPlanes = 1;
bmih->biBitCount = (unsigned short)bpp;
bmih->biCompression = BI_RGB;
if( bpp == 8 )
{
RGBQUAD* palette = bmi->bmiColors;
int i;
for( i = 0; i < 256; i++ )
{
palette[i].rgbBlue = palette[i].rgbGreen = palette[i].rgbRed = (BYTE)i;
palette[i].rgbReserved = 0;
}
}
}
CvvImage::CvvImage()
{
m_img = 0;
}
void CvvImage::Destroy()
{
cvReleaseImage( &m_img );
}
CvvImage::~CvvImage()
{
Destroy();
}
bool CvvImage::Create( int w int h int bpp int origin )
{
const unsigned max_img_size = 10000;
if( (bpp != 8 && bpp != 24 && bpp != 32) ||
(unsigned)w >= max_img_size || (unsigned)h >= max_img_size ||
(origin != IPL_ORIGIN_TL && origin != IPL_ORIGIN_BL))
{
assert(0); // most probably it is a programming error
return false;
}
if( !m_img || Bpp() != bpp || m_img->width != w || m_img->height != h )
{
if( m_img && m_img->nSize == sizeof(IplImage))
Destroy();
/* prepare IPL header */
m_img = cvCreateImage( cvSize( w h ) IPL_DEPTH_8U bpp/8 );
}
if( m_img )
m_img->origin = origin == 0 ? IPL_ORIGIN_TL : IPL_ORIGIN_BL;
return m_img != 0;
}
void CvvImage::CopyOf( CvvImage& image int desired_color )
{
IplImage* img = image.GetI
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2015-10-23 09:03 源码
目录 0 2018-07-06 11:48 源码MFCPlateRecognition
目录 0 2018-07-06 11:48 源码MFCPlateRecognitionDebug
文件 1506304 2014-04-15 17:19 源码MFCPlateRecognitionDebugopencv_calib3d249d.dll
文件 1145344 2014-04-15 17:17 源码MFCPlateRecognitionDebugopencv_contrib249.dll
文件 2360320 2014-04-15 17:20 源码MFCPlateRecognitionDebugopencv_contrib249d.dll
文件 2136064 2014-04-15 17:14 源码MFCPlateRecognitionDebugopencv_core249.dll
文件 3515392 2014-04-15 17:18 源码MFCPlateRecognitionDebugopencv_core249d.dll
文件 721408 2014-04-15 17:16 源码MFCPlateRecognitionDebugopencv_features2d249.dll
文件 1464832 2014-04-15 17:19 源码MFCPlateRecognitionDebugopencv_features2d249d.dll
文件 10535057 2013-12-20 18:32 源码MFCPlateRecognitionDebugopencv_ffmpeg249.dll
文件 520704 2014-04-15 17:14 源码MFCPlateRecognitionDebugopencv_flann249.dll
文件 1163264 2014-04-15 17:18 源码MFCPlateRecognitionDebugopencv_flann249d.dll
文件 430592 2014-04-15 17:17 源码MFCPlateRecognitionDebugopencv_gpu249.dll
文件 877056 2014-04-15 17:20 源码MFCPlateRecognitionDebugopencv_gpu249d.dll
文件 2146816 2014-04-15 17:15 源码MFCPlateRecognitionDebugopencv_highgui249.dll
文件 3697152 2014-04-15 17:19 源码MFCPlateRecognitionDebugopencv_highgui249d.dll
文件 1876480 2014-04-15 17:14 源码MFCPlateRecognitionDebugopencv_imgproc249.dll
文件 3144192 2014-04-15 17:18 源码MFCPlateRecognitionDebugopencv_imgproc249d.dll
文件 1239040 2014-04-15 17:16 源码MFCPlateRecognitionDebugopencv_legacy249.dll
文件 2627072 2014-04-15 17:19 源码MFCPlateRecognitionDebugopencv_legacy249d.dll
文件 505344 2014-04-15 17:14 源码MFCPlateRecognitionDebugopencv_ml249.dll
文件 1048064 2014-04-15 17:18 源码MFCPlateRecognitionDebugopencv_ml249d.dll
文件 555008 2014-04-15 17:17 源码MFCPlateRecognitionDebugopencv_nonfree249.dll
文件 1074176 2014-04-15 17:20 源码MFCPlateRecognitionDebugopencv_nonfree249d.dll
文件 654336 2014-04-15 17:15 源码MFCPlateRecognitionDebugopencv_objdetect249.dll
文件 1432576 2014-04-15 17:19 源码MFCPlateRecognitionDebugopencv_objdetect249d.dll
文件 2099200 2014-04-15 17:17 源码MFCPlateRecognitionDebugopencv_ocl249.dll
文件 3508736 2014-04-15 17:19 源码MFCPlateRecognitionDebugopencv_ocl249d.dll
文件 198656 2014-04-15 17:14 源码MFCPlateRecognitionDebugopencv_photo249.dll
文件 451584 2014-04-15 17:18 源码MFCPlateRecognitionDebugopencv_photo249d.dll
............此处省略254个文件信息
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)