&poseScore);
if (ret != MEDIA_VISION_ERROR_NONE) {
mv_pose_destroy(poser);
- printf("Fail to mv_pose_compare");
+ printf("Fail to mv_pose_compare\n");
return;
}
- printf("[Leg]:Left&Right - poseScore:[%1.4f]", poseScore);
+ printf("[Leg]:Left&Right - poseScore:[%1.4f]\n", poseScore);
+
+ mv_point_s skeleton = {MV_INFERENCE_HUMAN_POSE_HEAD - 1, MV_INFERENCE_HUMAN_POSE_NECK - 1};
+ float initf[] = {0.0, 0.0};
+ mv_vector_s dir = {2, initf};
+
+ ret = mv_pose_subtract(poser, pose, &skeleton, &dir);
+ if (ret != MEDIA_VISION_ERROR_NONE) {
+ mv_pose_destroy(poser);
+ printf("Fail to mv_pose_subtract\n");
+ return;
+ }
+
+ printf("direction :(%1.4f, %1.4f)\n", dir.value[0], dir.value[1]);
+
ret = mv_pose_destroy(poser);
if (ret != MEDIA_VISION_ERROR_NONE) {