Hello KrisM,
i checked the FaceApi specs but can’t find something. I found a piece of sample code of the FaceApi
Sample faceAPI Code
{
// STARTUP
smAPIInit();
// Register windows driver model (WDM) cameras
smCameraRegisterCategory(SM_API_CAMERA_CATEGORY_WDM);
// Create a new Head-Tracker engine
smEngine engine;
smEngineCreate(SM_API_ENGINE_LATEST_HEAD_TRACKER,&engine;);
// Register a callback function to receive the tracking data
smHTRegisterHeadPoseCallback(engine,0,receiveHeadPose);
// Create and show a video-display window
smVideoDisplay video_display;
smVideoDisplayCreate(engine,&video;_display,0,TRUE);
// Start tracking
smEngineStart(engine);
…
// SHUTDOWN
// Destroy engine
smEngineDestroy(&engine;);
// Destroy video display
smVideoDisplayDestroy(&video;_display);
smAPIQuit();
}
// Callback routine – called by head-tracker internal thread.
void receiveHeadPose(void *,smHTHeadPose head_pose)
{
// Position of head is in struct head_pose.head_pos as a 3D x,y,z coordinate in meters
// measured releative to the camera, where Z is the camera axis.
// Rotation of head is in struct head_pose.head_rot as a 3D x,y,z euler angle rotation in radians
// measured releative to the camera, where Z is the camera axis.
// Position of left and right eyeball centers also available as 3D position coordinates.
// as head_pose.left_eye_pos and head_pose.right_eye_pos
}
And in the installation path of FaceApi is a text file—->...\bin\resource\cam_whitelist.txt it “says”
# Cameras listed here will avoid functionality testing on startup
# This is usually required if the camera driver is ok except for the condition where the
# camera is not connected.
# The camera name must match the name of the video Capture Source filter in Directshow.
PS3Eye Camera
Hope this helps to solve the problem.
Thank you so much