kinect

Get JointType from Body class Kinect

喜夏-厌秋 提交于 2019-12-22 10:45:20
问题 I know in the old SDK, there was a Skeleton class and you can do something like public void Compare(Skeleton skeleton) { var leftShoulderPosition = skeleton.Joints.Where(j => j.JointType == JointType.ShoulderLeft); } However, the new SDK came out and the Skeleton class is replaced by the Body class. Now, the code is throwing an error at j.JointType . Is there a workaround for this problem? 回答1: With Microsoft Kinect SDK v2.0, you can get the ShoulderLeft joint (and, similarly, any other

C# image processing on Kinect video using AForge

雨燕双飞 提交于 2019-12-22 09:48:02
问题 My goal : use Kinect video to do shape recognition (large rectangle on the picture), draw rectangle on the picture to highlights the results and display. The techno I use : C# code, AForge and more specifically its shape checker http://www.aforgenet.com/articles/shape_checker/ How the magic should work : Every time a frame is ready I get the frame data as bytes array and transform it to bitmap to allow me to analyze it Apply the shape recognition algorithm Render the result... My problem :

kinect c# draw and move skeleton from saved data

妖精的绣舞 提交于 2019-12-22 07:26:13
问题 What I want to do is draw and animate a skeleton (like we can do with the sensor stream) from saved data (so I have x, y and z value of every joint). I searched a lot, but I can't find anything that can help me. I can convert the data to a joints collection, associate it to a skeleton, but then? I don't know how to map the skeleton to the colorImagePoint. Maybe I have to create a depthImageFrame ? Thank you so much! 回答1: Look into the Kinect Toolbox. It offers a recorder and playback

kinect c# draw and move skeleton from saved data

陌路散爱 提交于 2019-12-22 07:25:01
问题 What I want to do is draw and animate a skeleton (like we can do with the sensor stream) from saved data (so I have x, y and z value of every joint). I searched a lot, but I can't find anything that can help me. I can convert the data to a joints collection, associate it to a skeleton, but then? I don't know how to map the skeleton to the colorImagePoint. Maybe I have to create a depthImageFrame ? Thank you so much! 回答1: Look into the Kinect Toolbox. It offers a recorder and playback

Kinect emulation w/o actual device plugged

送分小仙女□ 提交于 2019-12-22 05:43:16
问题 Is it possible to emulate Kinect sensor (for usage with Kinect SDK), when the Kinect itself isn't plugged? First I thought Kinect Studio does exactly what I wanted, but now it seems like Kinect Studio records data streams and can "feed" them to application, but is unable to emulate connection to the sensor. So at the moment I have a couple of .xed files recorded with Kinect Studio and I can't launch any Kinect-enabled apps without getting "Kinect sensor is not plugged in" or whatever message.

How to zoom Kinect camera?

独自空忆成欢 提交于 2019-12-22 04:59:15
问题 I am now starting my own voyage into the realms of the kinect development. Is there any support for zooming the camera using the c# sdk? Thank you, 回答1: According to this thread there is no support for zoom other than digital zoom You could have a look at the, not officially endorsed, hardware add-on for Kinect by Nyko: Zoom 来源: https://stackoverflow.com/questions/8284284/how-to-zoom-kinect-camera

Measuring person's height using Kinect

守給你的承諾、 提交于 2019-12-21 21:29:17
问题 I am trying to calculate the height of a person using Kinect. Here is how I calculate the height (this code is not very sophisticated, it is only for testing purposes): double h2s = Math.Sqrt(Math.Pow(headX - shoulderCenterX, 2) + Math.Pow(headY - shoulderCenterY, 2)+ Math.Pow(headZ - shoulderCenterZ, 2)); double s2hip = Math.Sqrt(Math.Pow(shoulderCenterX - hipX, 2) + Math.Pow(shoulderCenterY - hipY, 2) + Math.Pow(shoulderCenterZ - hipZ, 2)); double hip2Lhip = Math.Sqrt(Math.Pow(hipX -

Using KinectColorViewer in SDK1.5

末鹿安然 提交于 2019-12-21 21:14:53
问题 I am trying to use a KinectColorViewer in a project using Kinect for windows (sdk 1.5). In the kinect explorer example, the KinectColorViewer componant had a KinectSensorManager component that is binded. In the xaml file we have: <kt:KinectColorViewer x:Name="ColorViewer" KinectSensorManager="{Binding KinectSensorManager}" CollectFrameRate="True" RetainImageOnSensorChange="True" /> I have a lot of trouble reproduccing the same concept in other projects. I have used the Microsoft.Kinect

How to get mesh from kinect fracetrack?

本秂侑毒 提交于 2019-12-21 20:18:11
问题 How do I get the kinect facetracking mesh? this is the mesh: http://imgur.com/TV6dHBC I have tried several ways, but could not make it work. e.g.: http://msdn.microsoft.com/en-us/library/jj130970.aspx 回答1: 3D Face Model Provided by IFTModel Interface The Face Tracking SDK also tries to fit a 3D mask to the user’s face. The 3D model is based on the Candide3 model (http://www.icg.isy.liu.se/candide/) : Note: This model is not returned directly at each call to the Face Tracking SDK, but can be

Bitmap class in WPF

泪湿孤枕 提交于 2019-12-21 19:51:14
问题 I'm working with Emgu Cv in Winforms to do face recognition using Kinect. Now, i want to move to WPF. However, the EmguCv library support only Bitmap class. Can i use the Bitmap class (used in Winforms) in WPF ? if not, is there an other method to use Emgu cv with kinect in WPF? Thanks. 回答1: System.Drawing.Bitmap can not be used directly as image source for WPF, so you have to convert it to System.Windows.Media.Imaging.BitmapSource. The best way to do it is by using Imaging