資源簡介
微軟Kinect sdk自帶的人臉識別源代碼,實用有效,功能強大
代碼片段和文件信息
//------------------------------------------------------------------------------
//?
//?????Copyright?(c)?Microsoft?Corporation.??All?rights?reserved.
//?
//------------------------------------------------------------------------------
#include?“stdafx.h“
#include?
#include?“resource.h“
#include?“FaceBasics.h“
//?face?property?text?layout?offset?in?X?axis
static?const?float?c_FaceTextLayoutOffsetX?=?-0.1f;
//?face?property?text?layout?offset?in?Y?axis
static?const?float?c_FaceTextLayoutOffsetY?=?-0.125f;
//?define?the?face?frame?features?required?to?be?computed?by?this?application
static?const?DWORD?c_FaceframeFeatures?=?
????FaceframeFeatures::FaceframeFeatures_BoundingBoxInColorSpace
????|?FaceframeFeatures::FaceframeFeatures_PointsInColorSpace
????|?FaceframeFeatures::FaceframeFeatures_RotationOrientation
????|?FaceframeFeatures::FaceframeFeatures_Happy
????|?FaceframeFeatures::FaceframeFeatures_RightEyeClosed
????|?FaceframeFeatures::FaceframeFeatures_LeftEyeClosed
????|?FaceframeFeatures::FaceframeFeatures_MouthOpen
????|?FaceframeFeatures::FaceframeFeatures_MouthMoved
????|?FaceframeFeatures::FaceframeFeatures_LookingAway
????|?FaceframeFeatures::FaceframeFeatures_Glasses
????|?FaceframeFeatures::FaceframeFeatures_FaceEngagement;
///?
///?Entry?point?for?the?application
///?
///?handle?to?the?application?instance
///?always?0
///?command?line?arguments
///?whether?to?display?minimized?maximized?or?normally
///?status
int?APIENTRY?wWinMain(_In_?HINSTANCE?hInstance?_In_opt_?HINSTANCE?hPrevInstance?_In_?LPWSTR?lpCmdLine?_In_?int?nCmdShow)
{
????UNREFERENCED_PARAMETER(hPrevInstance);
????UNREFERENCED_PARAMETER(lpCmdLine);
????CFaceBasics?application;
????application.Run(hInstance?nCmdShow);
}
///?
///?Constructor
///?
CFaceBasics::CFaceBasics()?:
????m_hWnd(NULL)
????m_nStartTime(0)
????m_nLastCounter(0)
????m_nframesSinceUpdate(0)
????m_fFreq(0)
????m_nNextStatusTime(0)
????m_pKinectSensor(nullptr)
????m_pCoordinateMapper(nullptr)
????m_pColorframeReader(nullptr)
????m_pD2DFactory(nullptr)
????m_pDrawDataStreams(nullptr)
????m_pColorRGBX(nullptr)
????m_pBodyframeReader(nullptr)
{
????LARGE_INTEGER?qpf?=?{0};
????if?(QueryPerformanceFrequency(&qpf))
????{
????????m_fFreq?=?double(qpf.QuadPart);
????}
????for?(int?i?=?0;?i?????{
????????m_pFaceframeSources[i]?=?nullptr;
????????m_pFaceframeReaders[i]?=?nullptr;
????}
????//?create?heap?storage?for?color?pixel?data?in?RGBX?format
????m_pColorRGBX?=?new?RGBQUAD[cColorWidth?*?cColorHeight];
}
///?
///?Destructor
///?
CFaceBasics::~CFaceBasics()
{
????//?clean?up?Direct2D?renderer
????i
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
????..A..H.?????32768??2019-03-30?13:47??FaceBasics-D2D\.vs\FaceBasics-D2D\v15\.suo
?????文件???84549632??2019-03-30?13:47??FaceBasics-D2D\.vs\FaceBasics-D2D\v15\Browse.VC.db
?????文件???86573056??2019-03-30?13:35??FaceBasics-D2D\.vs\FaceBasics-D2D\v15\ipch\AutoPCH\34d299c03d4dad3d\IMAGERENDERER.ipch
?????文件????3145728??2019-03-30?10:08??FaceBasics-D2D\.vs\FaceBasics-D2D\v15\ipch\AutoPCH\6e48f2a26c60a7e3\DIRECTXMATH.ipch
?????文件???60948480??2019-03-30?13:34??FaceBasics-D2D\.vs\FaceBasics-D2D\v15\ipch\AutoPCH\6fd5168e6e734807\FACEBASICS.ipch
?????文件??????12846??2014-10-19?12:43??FaceBasics-D2D\app.ico
?????文件?????125440??2019-03-30?10:11??FaceBasics-D2D\Debug\FaceBasics-D2D.exe
?????文件?????635688??2019-03-30?10:11??FaceBasics-D2D\Debug\FaceBasics-D2D.ilk
?????文件???????7099??2019-03-30?10:11??FaceBasics-D2D\Debug\FaceBasics-D2D.log
?????文件?????847872??2019-03-30?10:11??FaceBasics-D2D\Debug\FaceBasics-D2D.pdb
?????文件???????1518??2019-03-30?10:11??FaceBasics-D2D\Debug\FaceBasics-D2D.tlog\CL.command.1.tlog
?????文件??????79904??2019-03-30?10:11??FaceBasics-D2D\Debug\FaceBasics-D2D.tlog\CL.read.1.tlog
?????文件???????1376??2019-03-30?10:11??FaceBasics-D2D\Debug\FaceBasics-D2D.tlog\CL.write.1.tlog
?????文件????????225??2019-03-30?10:11??FaceBasics-D2D\Debug\FaceBasics-D2D.tlog\FaceBasics-D2D.lastbuildstate
?????文件???????2068??2019-03-30?10:11??FaceBasics-D2D\Debug\FaceBasics-D2D.tlog\li
?????文件???????5314??2019-03-30?10:11??FaceBasics-D2D\Debug\FaceBasics-D2D.tlog\li
?????文件????????894??2019-03-30?10:11??FaceBasics-D2D\Debug\FaceBasics-D2D.tlog\li
?????文件????????404??2019-03-30?10:11??FaceBasics-D2D\Debug\FaceBasics-D2D.tlog\rc.command.1.tlog
?????文件???????3134??2019-03-30?10:11??FaceBasics-D2D\Debug\FaceBasics-D2D.tlog\rc.read.1.tlog
?????文件????????278??2019-03-30?10:11??FaceBasics-D2D\Debug\FaceBasics-D2D.tlog\rc.write.1.tlog
?????文件?????189151??2019-03-30?10:11??FaceBasics-D2D\Debug\FaceBasics.obj
?????文件??????13324??2019-03-30?10:11??FaceBasics-D2D\Debug\FaceBasics.res
?????文件?????363927??2019-03-30?10:11??FaceBasics-D2D\Debug\ImageRenderer.obj
?????文件????1372144??2014-10-19?13:11??FaceBasics-D2D\Debug\Kinect20.Face.dll
?????文件?????150826??2014-10-19?12:42??FaceBasics-D2D\Debug\NuiDataba
?????文件??????55253??2014-10-19?12:42??FaceBasics-D2D\Debug\NuiDataba
?????文件??????65394??2014-10-19?12:42??FaceBasics-D2D\Debug\NuiDataba
?????文件?????126338??2014-10-19?12:42??FaceBasics-D2D\Debug\NuiDataba
?????文件?????????73??2014-10-19?12:42??FaceBasics-D2D\Debug\NuiDataba
?????文件??????28092??2014-10-19?12:42??FaceBasics-D2D\Debug\NuiDataba
............此處省略87個文件信息
評論
共有 條評論