我正在使用用户跟踪:我已经注册了回调(User_NewUser、User_LostUser、Pose_Detected、Calibration_Start、Calibration_End)。当我进入传感器区域时,我以正确的方式被检测和校准。但是当我离开传感器区域(里面没有其他人)时,我希望程序调用回调“User_LostUser”,但似乎没有这样做。(事实上,当我再次进入时,传感器仍然跟踪我!)我希望当用户离开场景时,程序取消注册/删除他并重新启动以检查新用户:有人可以帮助我吗?
void XN_CALLBACK_TYPE User_LostUser(xn::UserGenerator& generator, XnUserID nId,
void* pCookie) {
generator.GetPoseDetectionCap().StopPoseDetection(nId);
generator.GetPoseDetectionCap().Release();
generator.GetPoseDetectionCap().StartPoseDetection("Psi", nId);
}