91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡介

根據第五章 跌倒檢測算法剖析http://blog.csdn.net/baolinq/article/details/52400040,寫的跌到檢測源碼函數,大家可以參考一下,有問題歡迎一起交流學習。本系列其他文章http://blog.csdn.net/baolinq/article/details/52422206

資源截圖

代碼片段和文件信息

//檢測程序
void?CBodyBasics::Detection(Joint?joints[])
{
static?double?tin?tout;
//double?tframe;

//計算每相鄰10幀的高度差,從而計算速度,1111222
//大概30幀每秒,那么10幀就是0.33秒,
if?(framenumber?%?11?==?1) //framenumber是幀序列號,自己定義的
{
tin?=?static_cast(GetTickCount());
//cout?< SpineHeightin?=?joints[JointType_SpineMid].Position.Y;
//cout?< //cout?< }
if?(!(framenumber?%?11))
{
tout?=?static_cast(GetTickCount());
//cout?< //cout?<<“tout是“< //cout?< SpineHeightout?=?joints[JointType_SpineMid].Position.Y;
//cout?< //??cout?< //??cout?< //tframe?=?(tout?-?tin)?/?getTickFrequency();
//?cout?<ame?< //??cout?< //cout?< //SpineV?=?(SpineHeightin?-?SpineHeightout)?/?tframe;
SpineV?=?SpineHeightin?-?SpineHeightout;
//cout?< if?((SpineV)?>?0.35) //文獻中給定的數據是1.35m/s,這個可能要根據實際情況略有調整
{
vDetection?=?true;
stringstream?stream0;
string?str?str1;
stream0?< stream0?>>?str;
str1?=?“身體中心向下的速度是:?“?+?str?+?“?m/s\r\n“;
//CString?cstr?=

評論

共有 條評論