-
Notifications
You must be signed in to change notification settings - Fork 104
Facetracking using KinectSensor #183
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!
All reactions
Replies: 1 comment
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(...);