资源简介
对于学习opencv的初学者有很好的参考,主要是图像的目标检测和识别方法。

代码片段和文件信息
// MainFrm.cpp : CMainframe 类的实现
//
#include “stdafx.h“
#include “test.h“
#include “MainFrm.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// CMainframe
IMPLEMENT_DYNCREATE(CMainframe CframeWnd)
BEGIN_MESSAGE_MAP(CMainframe CframeWnd)
ON_WM_CREATE()
END_MESSAGE_MAP()
static UINT indicators[] =
{
ID_SEPARATOR // 状态行指示器
ID_INDICATOR_CAPS
ID_INDICATOR_NUM
ID_INDICATOR_SCRL
};
// CMainframe 构造/析构
CMainframe::CMainframe()
{
// TODO: 在此添加成员初始化代码
}
CMainframe::~CMainframe()
{
}
int CMainframe::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CframeWnd::OnCreate(lpCreateStruct) == -1)
return -1;
if (!m_wndToolBar.CreateEx(this TBstyle_FLAT WS_CHILD | WS_VISIBLE | CBRS_TOP
| CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC) ||
!m_wndToolBar.LoadToolBar(IDR_MAINframe))
{
TRACE0(“未能创建工具栏\n“);
return -1; // 未能创建
}
if (!m_wndStatusBar.Create(this) ||
!m_wndStatusBar.SetIndicators(indicators
sizeof(indicators)/sizeof(UINT)))
{
TRACE0(“未能创建状态栏\n“);
return -1; // 未能创建
}
// TODO: 如果不需要工具栏可停靠,则删除这三行
m_wndToolBar.EnableDocking(CBRS_ALIGN_ANY);
EnableDocking(CBRS_ALIGN_ANY);
DockControlBar(&m_wndToolBar);
return 0;
}
BOOL CMainframe::PreCreateWindow(CREATESTRUCT& cs)
{
if( !CframeWnd::PreCreateWindow(cs) )
return FALSE;
// TODO: 在此处通过修改
// CREATESTRUCT cs 来修改窗口类或样式
return TRUE;
}
// CMainframe 诊断
#ifdef _DEBUG
void CMainframe::AssertValid() const
{
CframeWnd::AssertValid();
}
void CMainframe::Dump(CDumpContext& dc) const
{
CframeWnd::Dump(dc);
}
#endif //_DEBUG
// CMainframe 消息处理程序
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 946032 2005-03-16 19:18 test\haarcascade_frontalface_alt.xm
文件 1794 2011-07-02 15:29 test\MainFrm.cpp
文件 655 2011-07-02 15:29 test\MainFrm.h
文件 3358 2011-07-02 15:29 test\ReadMe.txt
文件 21630 2005-12-08 14:56 test\res\test.ico
文件 360 2011-07-02 15:29 test\res\test.rc2
文件 1078 2005-12-08 14:56 test\res\testDoc.ico
I.A.SH. 8192 2015-07-16 00:26 test\res\Thumbs.db
文件 1078 2005-12-08 14:56 test\res\Toolbar.bmp
文件 629 2011-07-02 15:43 test\resource.h
文件 135 2011-07-02 15:29 test\stdafx.cpp
文件 2489 2011-07-02 15:29 test\stdafx.h
文件 51216 2015-07-15 18:42 test\test.aps
文件 3208 2011-07-02 22:57 test\test.cpp
文件 452 2011-07-02 15:29 test\test.h
文件 11287 2011-07-02 15:43 test\test.rc
文件 5842 2011-07-02 15:30 test\test.vcproj
文件 1409 2011-12-03 14:27 test\test.vcproj.FLM-PC.FLM.user
文件 1409 2012-05-19 20:20 test\test.vcproj.MFL-PC.Administrator.user
文件 1427 2011-07-13 14:46 test\test.vcproj.PC--20110629JAV.Administrator.user
文件 7358 2015-07-16 00:26 test\test.vcxproj
文件 2401 2015-07-15 18:41 test\test.vcxproj.filters
文件 143 2015-07-15 18:41 test\test.vcxproj.user
文件 1158 2011-07-02 15:40 test\testDoc.cpp
文件 594 2011-07-02 15:40 test\testDoc.h
文件 4312 2011-12-03 14:26 test\testView.cpp
文件 1158 2011-07-02 15:46 test\testView.h
目录 0 2015-07-19 12:21 test\Debug
目录 0 2015-07-16 00:26 test\res
目录 0 2015-07-15 18:42 test
............此处省略3个文件信息
- 上一篇:B样条实现代码
- 下一篇:Esp8266程序基于STM32
相关资源
- 基于OpenCV的数字识别468815
- 使用opencv去掉二值化图像中黑色面积
- opencv环境配置
- win10 64位下编译的opencv4.5.5库,opencv
- NVIDIAOpticalFlowSDK-79c6cee80a2df9a196f20afd6
- opencv_contrib-3.4.0.zip
- opencv2.4.9源码分析——SIFT
- 用两个摄像头实现,双目标定,双目
- opencv_traincascade训练分类器,手势识别
- opencv3.0交叉编译用parallel.cpp
- 基于opencv的图像识别识别图像中的色
- 基于openCV的识别特定颜色区域
- 基于OpenCV的分水岭算法实现
- QT+opencv+OCR 身份证号码,银行卡号识别
- opencv视频特定颜色区域识别
- 把RGB转换为HSV和HSI然后根据黄色和蓝
- opencv视觉测距
- 基于Qt和opencv的身份证号码识别系统
- opencv_ffmpeg249.dll
- SfM稀疏三维点云重建--完整工程文件
- 基于opencv的数人头程序源代码
- 利用OpenCV中的Stitcher类实现全景图像拼
- opencv实现的sift算法源码,包含了图像
- openCV 上的小波变换
- 基于OPENCV的车牌识别系统设计
- 617张国内车牌60-17bmp图片用于OpenCV正样
- hog特征提取,c版本代码
- 基于Qt5.8+OpenCV3.2的Basler多相机触发开
- 基于Opencv实现的图像纠偏
- ImageWatch2019.vsix
评论
共有 条评论