本文整理汇总了C++中xn::HandsGenerator::StartTracking方法的典型用法代码示例。如果您正苦于以下问题:C++ HandsGenerator::StartTracking方法的具体用法?C++ HandsGenerator::StartTracking怎么用?C++ HandsGenerator::StartTracking使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类xn::HandsGenerator
的用法示例。
在下文中一共展示了HandsGenerator::StartTracking方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Gesture_Recognized
// Define hand & gesture recognition callbacks
void XN_CALLBACK_TYPE Gesture_Recognized(
xn::GestureGenerator& generator,
const XnChar* strGesture,
const XnPoint3D* pIDPosition,
const XnPoint3D* pEndPosition,
void* pCookie)
{
gesture_generator.RemoveGesture(strGesture);
hands_generator.StartTracking(*pEndPosition);
}
示例2: printf
void XN_CALLBACK_TYPE
Gesture_Recognized(xn::GestureGenerator& generator,
const XnChar* strGesture,
const XnPoint3D* pIDPosition,
const XnPoint3D* pEndPosition, void* pCookie)
{
printf("Gesture recognized: %s\n", strGesture);
//g_GestureGenerator.RemoveGesture(strGesture);
g_HandsGenerator.StartTracking(*pEndPosition);
}
示例3: Gesture_Recognized
/* Start tracking the hand once a gesture is recognized */
void XN_CALLBACK_TYPE Gesture_Recognized(xn::GestureGenerator &generator,
const XnChar *gesture,
const XnPoint3D *startPosition,
const XnPoint3D *endPosition,
void *cookie) {
printf("Gesture recognized: %s\n", gesture);
// Only start tracking a hand if we're not already tracking one.
if(!trackingMove || !trackingLook) {
g_HandsGenerator.StartTracking(*endPosition);
}
}
示例4: Gesture_Recognized
//gesture callbacks
void XN_CALLBACK_TYPE Gesture_Recognized(xn::GestureGenerator& generator, const XnChar* strGesture, const XnPoint3D* pIDPosition, const XnPoint3D* pEndPosition, void* pCookie) {
printf("{\"gesture\":{\"type\":\"%s\"}, \"elapsed\":%.3f}}\n", strGesture, clockAsFloat(last));
gestureGenerator.RemoveGesture(strGesture);
handsGenerator.StartTracking(*pEndPosition);
}
示例5: HandsGenerator_StartTracking_wrapped
void HandsGenerator_StartTracking_wrapped(xn::HandsGenerator& self, BP::list point) {
check( self.StartTracking(convertToVec3D((boost::python::list) point)) );
}