Skip to content

Navigation Menu

Sign in
Sign up

Facetracking using KinectSensor #183

Unanswered
Tyler Lynch (tyler-lynch) asked this question in Q&A
Discussion options

Hi everyone,

I am trying to figure out how to draw a bounding box around a face using the KinectFaceTracker.

There seems to be a lot of useful properties in Microsoft.Kinect.Face or KinectFace. For example FaceBoundingBoxInColorSpace looks useful but I am not sure how to use it or any of the other properties in KinectFace and Microsoft.Kinect.Face. Is there any documentation on how to use these?

Anything is appreciated.

Thanks!

You must be logged in to vote

Replies: 1 comment

Comment options

Hi,

The documentation for the Kinect component can be found here, including a very simple sample on how to use the Kinect face tracker component. These \psi components basically try to wrap much of the core Kinect SDK functionality, which is documented for example here: FaceBoundingBoxInColorSpace Property

If you're wondering how to visualize the bounding box, we don't have visualizers for the KinectFace or RectI types directly, but it's fairly easy to use a Select operator to convert the KinectFaces into System.Drawing.Rectangles, which we do have default visualizers for.

For example, something like:

...
var faceRectangles = kinectFaceDetector.Faces.Select(faceList => faceList.Select(face => new System.Drawing.Rectangle(...)).ToList()).Write(...);
You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /