资源简介
人形目标检测与跟踪,对于视频图像,用方框或椭圆标出检测出的行人运动目标,以实现对目标的跟踪。
代码片段和文件信息
#include “cvaux.h“
#include “highgui.h“
#include
#include “myfgdetector.h“
//#include “myblobdetector.h“
/* select the correct function for doing case insensitive string comparaison */
#ifdef WIN32
#define MY_STRNICMP strnicmp
#define MY_STRICMP stricmp
#else
#define MY_STRNICMP strncasecmp
#define MY_STRICMP strcasecmp
#endif
/* list of FG DETECTION modules */
static CvFGDetector* CreateMyFGDetector(){return (new MyFGDetector() );}
static CvFGDetector* cvCreateFGDetector0(){return cvCreateFGDetectorbase(CV_BG_MODEL_FGD NULL);}
static CvFGDetector* cvCreateFGDetector0Simple(){return cvCreateFGDetectorbase(CV_BG_MODEL_FGD_SIMPLE NULL);}
static CvFGDetector* cvCreateFGDetector1(){return cvCreateFGDetectorbase(CV_BG_MODEL_MOG NULL);}
typedef struct DefModule_FGDetector
{
CvFGDetector* (*create)();
char* nickname;
char* description;
} DefModule_FGDetector;
DefModule_FGDetector FGDetector_Modules[] =
{
{CreateMyFGDetector “FG_MY“ “My simple foregound object detection“}
{cvCreateFGDetector0“FG_0““Foreground object Detection from Videos Containing Complex Background. ACM MM2003.“}
{cvCreateFGDetector0Simple“FG_0S““Simplyfied version of FG_0“}
{cvCreateFGDetector1“FG_1““Adaptive background mixture models for real-time tracking. CVPR1999“}
{NULLNULLNULL}
};
/* list of BLOB DETECTION modules */
//static CvBlobDetector* CreateMyBlobDetector(){return (new MyBlobDetector() );}
//static CvBlobDetector* CreateMyBlobDetector(){return new MyBlobDetector();}
typedef struct DefModule_BlobDetector
{
CvBlobDetector* (*create)();
char* nickname;
char* description;
} DefModule_BlobDetector;
DefModule_BlobDetector BlobDetector_Modules[] =
{
// {CreateMyBlobDetector“BD_MY““My simple blog detector“}
{cvCreateBlobDetectorCC“BD_CC““Detect new blob by tracking CC of FG mask“}
{cvCreateBlobDetectorSimple“BD_Simple““Detect new blob by uniform moving of connected components of FG mask“}
{NULLNULLNULL}
};
/* list of BLOB TRACKING modules */
typedef struct DefModule_BlobTracker
{
CvBlobTracker* (*create)();
char* nickname;
char* description;
} DefModule_BlobTracker;
DefModule_BlobTracker BlobTracker_Modules[] =
{
{cvCreateBlobTrackerCCMSPF“CCMSPF““connected component tracking and MSPF resolver for collision“}
{cvCreateBlobTrackerCC“CC““Simple connected component tracking“}
{cvCreateBlobTrackerMS“MS““Mean shift algorithm “}
{cvCreateBlobTrackerMSFG“MSFG““Mean shift algorithm with FG mask using“}
{cvCreateBlobTrackerMSPF“MSPF““Particle filtering based on MS weight“}
{NULLNULLNULL}
};
/* list of BLOB TRAJECTORY GENERATION modules */
typedef struct DefModule_BlobTrackGen
{
CvBlobTrackGen* (*create)();
char* nickname;
char* description;
} DefModule_BlobTrackGen;
DefModule_BlobTrackGen BlobTrackGen_Modules[] =
{
{cvCreateModuleBlobTrackGenYML“YML““Generate track record in YML format as synthetic video dat
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2905998 2009-06-09 08:54 project\图像project\btgex.WMV
文件 26766 2009-06-08 18:43 project\图像project\myblobtrack\blobtrack.cpp
文件 19765 2006-05-04 15:37 project\图像project\myblobtrack\blobtrackingcc.cpp
文件 81807 2009-06-08 18:43 project\图像project\myblobtrack\Debug\blobtrack.obj
文件 0 2009-06-01 20:18 project\图像project\myblobtrack\Debug\blobtrack.sbr
文件 2294784 2009-06-01 20:18 project\图像project\myblobtrack\Debug\myblobtrack.bsc
文件 245932 2009-06-09 08:50 project\图像project\myblobtrack\Debug\myblobtrack.exe
文件 318896 2009-06-09 08:50 project\图像project\myblobtrack\Debug\myblobtrack.ilk
文件 948068 2009-06-08 18:43 project\图像project\myblobtrack\Debug\myblobtrack.pch
文件 590848 2009-06-09 08:50 project\图像project\myblobtrack\Debug\myblobtrack.pdb
文件 23807 2009-06-09 08:50 project\图像project\myblobtrack\Debug\myfgdetector.obj
文件 0 2009-06-01 20:18 project\图像project\myblobtrack\Debug\myfgdetector.sbr
文件 181248 2009-06-09 08:50 project\图像project\myblobtrack\Debug\vc60.idb
文件 118784 2009-06-09 08:50 project\图像project\myblobtrack\Debug\vc60.pdb
文件 213 2007-03-23 18:51 project\图像project\myblobtrack\Makefile
文件 4300 2009-06-02 20:24 project\图像project\myblobtrack\myblobdetector.h
文件 4340 2007-03-23 19:33 project\图像project\myblobtrack\myblobtrack.dsp
文件 547 2007-03-23 19:33 project\图像project\myblobtrack\myblobtrack.dsw
文件 50176 2009-06-09 09:11 project\图像project\myblobtrack\myblobtrack.ncb
文件 54784 2009-06-09 09:11 project\图像project\myblobtrack\myblobtrack.opt
文件 1350 2009-06-09 08:50 project\图像project\myblobtrack\myblobtrack.plg
文件 2122 2009-06-09 08:50 project\图像project\myblobtrack\myfgdetector.cpp
文件 647 2006-12-17 23:35 project\图像project\myblobtrack\myfgdetector.h
文件 38040 2009-06-03 08:21 project\图像project\myblobtrack\Release\blobtrack.obj
文件 73728 2009-06-03 08:21 project\图像project\myblobtrack\Release\myblobtrack.exe
文件 930612 2009-06-03 08:21 project\图像project\myblobtrack\Release\myblobtrack.pch
文件 8209 2009-06-03 08:21 project\图像project\myblobtrack\Release\myfgdetector.obj
文件 41984 2009-06-03 08:21 project\图像project\myblobtrack\Release\vc60.idb
..A.SH. 10752 2009-11-29 10:08 project\图像project\Thumbs.db
文件 2743868 2009-06-09 08:46 project\图像project\Track_ExhibitionHall.WMV
............此处省略10个文件信息
评论
共有 条评论