O'Reilly logo

Augmented Reality with Kinect by Rui Wang

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Detecting a face from the camera

Before we start to detect a face in front of the Kinect camera, we should set up the include and library files of the face tracking library. For Visual Studio users, first add ${FTSDK_DIR}/inc to the current include directories of your project, and add ${FTSDK_DIR}/Lib/x86/FaceTrackLib.lib to the additional dependencies. You may also have to manually copy all the files in ${FTSDK_DIR}/Redist/x86 to your executable folder to help find these dynamic library files smoothly.

Now we will work on a Kinect example we have done before, which has already initialized the Kinect context for the new face tracking library that is ready to use.

Detecting and drawing the face rectangle

In this example, we will first detect the position ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required