Skip to content
Permalink
Browse files

minor fix for openface visualization

  • Loading branch information...
tobiasbaur committed Feb 21, 2019
1 parent ff05238 commit 348e1846b3240c8c19c041df7e01d2134b2f407b
Showing with 2 additions and 2 deletions.
  1. BIN bin/x64/vc140/ssiopenpose.dll
  2. +2 −2 plugins/openpose/source/OpenposeConverter.cpp
BIN +0 Bytes (100%) bin/x64/vc140/ssiopenpose.dll
Binary file not shown.
@@ -301,8 +301,8 @@ namespace ssi {


to[SSI_SKELETON_JOINT::FACE_CHIN][SSI_SKELETON_JOINT_VALUE::POS_X] = from[OpenposeModelInfos::SKELETON_JOINT_BODY::NOSE][OpenposeModelInfos::SKELETON_JOINT_VALUE::POS_X] * 1.0f;
to[SSI_SKELETON_JOINT::FACE_CHIN][SSI_SKELETON_JOINT_VALUE::POS_Y] = (from[OpenposeModelInfos::SKELETON_JOINT_BODY::NOSE][OpenposeModelInfos::SKELETON_JOINT_VALUE::POS_Y] * -1.0f) + to[SSI_SKELETON_JOINT::FACE_FOREHEAD][SSI_SKELETON_JOINT_VALUE::POS_Y] / 2;
to[SSI_SKELETON_JOINT::FACE_CHIN][SSI_SKELETON_JOINT_VALUE::POS_CONF] = from[OpenposeModelInfos::SKELETON_JOINT_BODY::LEAR][OpenposeModelInfos::SKELETON_JOINT_VALUE::POS_CONF];
to[SSI_SKELETON_JOINT::FACE_CHIN][SSI_SKELETON_JOINT_VALUE::POS_Y] = (from[OpenposeModelInfos::SKELETON_JOINT_BODY::NOSE][OpenposeModelInfos::SKELETON_JOINT_VALUE::POS_Y] * -1.0f) + ((from[OpenposeModelInfos::SKELETON_JOINT_BODY::NOSE][OpenposeModelInfos::SKELETON_JOINT_VALUE::POS_Y] * -1.0f - to[SSI_SKELETON_JOINT::FACE_FOREHEAD][SSI_SKELETON_JOINT_VALUE::POS_Y]) * 2.0f);
to[SSI_SKELETON_JOINT::FACE_CHIN][SSI_SKELETON_JOINT_VALUE::POS_CONF] = from[OpenposeModelInfos::SKELETON_JOINT_BODY::NOSE][OpenposeModelInfos::SKELETON_JOINT_VALUE::POS_CONF];
}
}

0 comments on commit 348e184

Please sign in to comment.
You can’t perform that action at this time.