• 大小: 170KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2022-06-24
  • 语言: 其他
  • 标签: OpenCV人头  

资源简介

一个应用于公交、汽车、车站商场的人头检测程序,检测出人头进出数量。 输入一幅图片,通过计算指定入口区域的HIST结果,判断是否有人进入。可同时检测2人进入或出去。 一种基于随机Hough变换(RHT)的人头检测方法。根据人头部轮廓近圆的特征,采用Canny算子提取图像边缘,得到目标轮廓。利用RHT算法对独立的曲线进行圆检测,并对人头进行标识。实验结果表明,与现有方法相比,该方法的识别率较高、速度较快、适用范围较广。

资源截图

代码片段和文件信息

// 
// Copyright jeff (www.appstorego.com)
// Please keep this reference if you use
// 
// count.cpp : Defines the class behaviors for the application.
//

#include “stdafx.h“
#include “count.h“
#include “countDlg.h“

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CCountApp

BEGIN_MESSAGE_MAP(CCountApp CWinApp)
//{{AFX_MSG_MAP(CCountApp)
// NOTE - the ClassWizard will add and remove mapping macros here.
//    DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG
ON_COMMAND(ID_HELP CWinApp::onhelp)
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CCountApp construction

CCountApp::CCountApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}

/////////////////////////////////////////////////////////////////////////////
// The one and only CCountApp object

CCountApp theApp;

/////////////////////////////////////////////////////////////////////////////
// CCountApp initialization

BOOL CCountApp::InitInstance()
{
AfxEnableControlContainer();

// Standard initialization
// If you are not using these features and wish to reduce the size
//  of your final executable you should remove from the following
//  the specific initialization routines you do not need.

#ifdef _AFXDLL
Enable3dControls(); // Call this when using MFC in a shared DLL
#else
Enable3dControlsStatic(); // Call this when linking to MFC statically
#endif

CCountDlg dlg;
m_pMainWnd = &dlg;
int nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
// TODO: Place code here to handle when the dialog is
//  dismissed with OK
}
else if (nResponse == IDCANCEL)
{
// TODO: Place code here to handle when the dialog is
//  dismissed with Cancel
}

// Since the dialog has been closed return FALSE so that we exit the
//  application rather than start the application‘s message pump.
return FALSE;
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      41448  2014-03-07 13:50  human_head\count.aps

     文件       2506  2012-10-02 11:26  human_head\count.clw

     文件       2141  2014-05-06 14:57  human_head\count.cpp

     文件       4388  2008-06-15 12:30  human_head\count.dsp

     文件        535  2008-02-13 12:47  human_head\count.dsw

     文件       1313  2008-02-13 12:47  human_head\count.h

     文件     156672  2012-10-02 11:26  human_head\count.ncb

     文件     379904  2012-10-02 11:26  human_head\count.opt

     文件       4231  2008-06-30 09:23  human_head\count.plg

     文件       7728  2014-03-07 13:50  human_head\count.rc

     文件        876  2014-03-05 14:37  human_head\count.sln

    ..A..H.      9728  2014-03-05 14:37  human_head\count.suo

     文件       9271  2014-03-05 15:51  human_head\count.vcxproj

     文件       2274  2014-03-05 15:39  human_head\count.vcxproj.filters

     文件        143  2014-03-05 14:33  human_head\count.vcxproj.user

     文件      26549  2014-03-07 15:41  human_head\countDlg.cpp

     文件       3279  2014-03-07 15:41  human_head\countDlg.h

     文件       6433  2012-11-05 15:58  human_head\CvvImage.cpp

     文件       2042  2014-03-05 15:41  human_head\CvvImage.h

     文件       3655  2014-05-06 14:57  human_head\ReadMe.txt

     文件       1078  2008-02-13 12:47  human_head\res\count.ico

     文件        397  2008-02-13 12:47  human_head\res\count.rc2

     文件       2057  2014-03-07 13:50  human_head\resource.h

     文件       5471  2014-03-06 12:04  human_head\rgbgmfgd.cpp

     文件        845  2014-03-06 13:34  human_head\rgbgmfgd.h

     文件        207  2008-02-13 12:47  human_head\StdAfx.cpp

     文件       1054  2008-02-13 12:47  human_head\StdAfx.h

     目录          0  2014-03-05 14:38  human_head\res

     目录          0  2014-05-06 14:57  human_head

----------- ---------  ---------- -----  ----

............此处省略2个文件信息

评论

共有 条评论

相关资源