kinect

How to choose Full Frames (Uncompressed) as codec for VideoWriter

◇◆丶佛笑我妖孽 提交于 2019-12-05 13:55:25
i want to store uncompressed frames from a device as a video, but i need to know how to choose " Full Frames (Uncompressed) " as a codec for the VideoWriter (in emgu aka openCV). Iam able to choose it from the dropdown menu when iam passing -1 like this VideoWriter myVideoWriter = new VideoWriter ("myVieoColor.avi", -1 , 15, videoSize, true); But i want to choose the Full Frames (Uncompressed) codec automatically. For example i know i can choose the Lagarith Lossless Video Codec by VideoWriter myVideoWriter = new VideoWriter ("myVieoColor.avi", Emgu.CV.VideoWriter.Fourcc('L','A','G','S') , 15,

kinect c# draw and move skeleton from saved data

人走茶凉 提交于 2019-12-05 11:00:19
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! Look into the Kinect Toolbox. It offers a recorder and playback functionality which may match your needs as is, or provide you with a starting point: http://kinecttoolbox.codeplex

Recording/playback Kinect with Matlab - upside down and in black/white rather than gray scale

老子叫甜甜 提交于 2019-12-05 09:27:13
问题 I am trying to write a program to record and playback both colour and depth streams from a xbox kinect to ease testing image processing programs. Currently I have the bulk done and the colour stream works fine. I am however having trouble with the depth stream. Currently, the depth stream is playing back upside down and only in black and white. I have 3 thoughts as to why this may be the case: 1) The conversion to 8-bit from 11-bit 2) the Motion JPEG 2000 format (never used this before) 3)

detecting finger movement with Microsoft Kinect in c#

荒凉一梦 提交于 2019-12-05 07:52:16
Is it possible to detect finger movements with Kinect. I am able to detect skeleton and do some mouse movement and perform a click based on OTHER HAND location. I would like to implement the 'mouse click' using finger movements. Is it possible with Microsoft Kinect sdk or with the other open source similar projects? Thanks. Currently it is only possible by using a hack; there is no official setting or API for it but it is possible to analyze the image data and find the fingers. Have a look here 来源: https://stackoverflow.com/questions/6926397/detecting-finger-movement-with-microsoft-kinect-in-c

Kinect emulation w/o actual device plugged

耗尽温柔 提交于 2019-12-05 06:03:00
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. Is there any way around this? I have access to Kinect, but it's not at the same place I intend to

How to detect open/closed hand using Microsoft Kinect for Windows SDK ver 1.7 C#

五迷三道 提交于 2019-12-05 03:31:35
问题 I have recently started using Microsoft Kinect for Windows SDK to program some stuff using the Kinect the device. I am busting my ass to find a way to detect whether a certain hand is closed or opened. I saw the Kinect for Windows Toolkit but the documentation is none existent and I can't find a way to make it work. Does anyone knows of a simple way to detect the hand's situation? even better if it doesn't involve the need to use the Kinect toolkit. 回答1: This is how I did it eventually: First

How to track ONE person with Kinect (trackingID)

自闭症网瘾萝莉.ら 提交于 2019-12-05 02:47:22
I would like to track the first person, and use this person's right hand to navigate in the application that I made. I can take over the cursor, now I just want only one person being tracked. So basically when one person is navigating in the program, and there are people walking behind him or are looking with this guy, if they move, the kinect shouldn't recognise anyone else. How can I implement this, I know it's something with the trackingId but what? :s foreach (SkeletonData s in allSkeletons.Skeletons) { if (s.TrackingState == SkeletonTrackingState.Tracked) { if (s.TrackingID == 0) {

Implicitly convertible to 'System.IDisposable' error

▼魔方 西西 提交于 2019-12-05 00:28:51
This is what I'm trying to do: private KinectAudioSource CreateAudioSource() { var source = KinectSensor.KinectSensors[0].AudioSource; source.NoiseSuppression = _isNoiseSuppressionOn; source.AutomaticGainControlEnabled = _isAutomaticGainOn; return source; } private object lockObj = new object(); private void RecordKinectAudio() { lock (lockObj) { using (var source = CreateAudioSource()) { } } } The 'using' statement gives one error which states: 'Microsoft.Kinect.KinectAudioSource':type used in a using statement must be implicitly convertible to 'System.IDisposable' How do I eliminate this

Kinect Device not connected

风格不统一 提交于 2019-12-04 21:55:52
I've been trying to get my Kinect connected to my computer. I've installed the drivers and OpenNI, and when I tried to run NiViwer 64, the only message i get is this: "Device: PrimeSense/SensorKinect/5.1.2.1: The Device is not connected!". Any ideas on how to fix this? There is a proper order of installing drivers, sdk etc specially when it comes to OpenNI. You have to be sure that you didn`t install enything from Microsoft cause it may cause some issues. IMO uninstall everything and go via this tutorial: http://www.codeproject.com/Articles/148251/How-to-Successfully-Install-Kinect-on-Windows

kinect sdk 2.0 joint angles and tracking

。_饼干妹妹 提交于 2019-12-04 21:11:42
How to check whether the joints you are accessing have a tracking state of Tracked. I am finding the angles of 8 of the joints and I can't seem to get the result to be displayed on my screen, public double AngleBetweenTwoVectors(Vector3D vectorA, Vector3D vectorB) { double dotProduct = 0.0; vectorA.Normalize(); vectorB.Normalize(); dotProduct = Vector3D.DotProduct(vectorA, vectorB); return (double)Math.Acos(dotProduct) / Math.PI * 180; } public double[] GetVector(Body skeleton) { Vector3D Shoulder = new Vector3D(skeleton.Joints[JointType.SpineShoulder].Position.X, skeleton.Joints[JointType