• 大小: 150KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-06-10
  • 语言: 其他
  • 标签: opencv  

资源简介

对于学习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.xml

     文件       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个文件信息

评论

共有 条评论