资源简介
对于学习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实现特征点的检测与匹配
- Qt魔方还原lesson5-opencv识别颜色
- opencv 标定 带图片
- ippicv_2017u2_lnx_intel64_20170418.tgz
- cxcore.lib的生成工程
- Caffe安装支持文件
- opencv调用摄像头捕捉并进行人脸识别
- opencv+串口通讯
- 图像处理源码 opencv图像处理源码
- opencv2.4.9opencv_createsamples.exe和opencv_h
- LSD-直线检测源码
- Opencv 特征点提取 代码
- Opencv 各种特征点提取和匹配
- opencv调用摄像头并截图保存
- KinectV2 opencv qt 实现平面测量
- opencv_createsamples.exe opencv_traincascade.
- CvvImage类
- OpenCv视频采集
- OPENCV人脸检测程序可直接运行
- kinect深度图像去噪
- 用OpenCV实现Photoshop算法(九): 高反差
- 用OpenCV实现Photoshop算法_调整色相饱和
- opencv 人数统计
- Opencv学习视频
- opencv_world310.lib文件
- OpenCv2 轮廓提取源代码VS2008
- opencv2.4.4
- EMCV库函数
- 基于OPENCV的背景差法提取运动目标
- opencv视频教程地址
评论
共有 条评论