kinect

Finding Elbow Angle with Kinect

删除回忆录丶 提交于 2019-12-12 18:54:08
问题 Vector3D Rwrist = new Vector3D(skel.Joints[JointType.WristRight].Position.X, skel.Joints[JointType.WristRight].Position.Y, skel.Joints[JointType.WristRight].Position.Z); Vector3D Relbow = new Vector3D(skel.Joints[JointType.ElbowRight].Position.X, skel.Joints[JointType.ElbowRight].Position.Y, skel.Joints[JointType.ElbowRight].Position.Z); Vector3D Rshoulder = new Vector3D(skel.Joints[JointType.ShoulderRight].Position.X, skel.Joints[JointType.ShoulderRight].Position.Y, skel.Joints[JointType

OpenCV (C++): how to save a 16bit image?

天大地大妈咪最大 提交于 2019-12-12 11:15:17
问题 I'm working with kinect, and I need to save RAW depth image. This means that I shouldn't save it with a conversion to 8 bit (that is what imwrite is doing!) but save it as 16 bit, without have any bit-depth reducing. I hope that this question will not be too trivial, but I'm new to OpenCV programming. I tried the following, but it doesn't work: [...] Mat imageDepth ( 480, 640, CV_16UC1 ); Mat imageRGB; // Video stream settings VideoCapture capture; capture.open( CAP_OPENNI ); if ( !capture

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

*爱你&永不变心* 提交于 2019-12-12 09:43:49
问题 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

Finger tracking in Kinect

不羁岁月 提交于 2019-12-12 09:09:21
问题 I was exploring development on kinect, and wanted to be able to recognize fingers rather than the entire hand only. The skeletal API by kinect official SDK only has the hand joint - no provisions for finger tracking. I also read that very recently Microsoft has included the grip recognition API in the new sdk and might include finger tracking in future releases. My question is given the current resources, how do i go about to do finger tracking ? Do we have external libraries for the same ?

Visual Studio 2013 and Kinect SDK 2.0 Cannot find or include <NuiApi.h>

筅森魡賤 提交于 2019-12-12 09:01:58
问题 I am learning Kinect development using C++ in Visual Studio 2013 (Desktop version on Windows 8.1). I have downloaded the Kinect SDK 2.0 from Microsoft. According to my understanding, NuiApi.h is part of Kinect SDK 2.0. However, I cannot include it (#include says Cannot open source file). Have searched my computer for the file but couldn't find it. Reinstalled Kinect SDK with no luck. Below is the related part of the code: #include<iostream> #include<Windows.h> #include<kinect.h> #include

Rendering Kinect Point Cloud with Vertex Buffer Object (VBO)

妖精的绣舞 提交于 2019-12-12 08:39:41
问题 I´m trying to make a dynamic point cloud visualizer. The points are updated every frame with Kinect Sensor. To grab the frames I´m using OpenCV and GLUT to display. The OpenCV API returns a 640 x 480 (float *), for the points xyz position , and a 640 x 480 (int *) for the rgb color data. To get the maximum performance, I´m trying to use Vertex Buffer Object in stream mode instead of a simple Vertex Array. I´m being able to render it with Vertex Array, but nothing is being rendered with my VBO

How to move a kinect skeleton to another position

夙愿已清 提交于 2019-12-12 07:57:03
问题 I am working on a extension method to move one skeleton to a desired position in the kinect field os view. My code receives a skeleton to be moved and the destiny position, i calculate the distance between the received skeleton hip center and the destiny position to find how much to move , then a iterate in the joint applying this factor. My code, actualy looks like this. public static Skeleton MoveTo(this Skeleton skToBeMoved, Vector4 destiny) { Joint newJoint = new Joint(); ///Based on the

Capture RGB from Kinnect with Openni and show with OpenCV

江枫思渺然 提交于 2019-12-12 07:53:36
问题 I need to capture the color RGB image from a Kinnect camera, but I want to show it in OpenCV as this is only a part of a bigger program. I know OpenCV has compatibility with OpenNI if you set the flag, but although I tried hard CMake couldn't find the path to OpenNI2 so I couldn't build OpenCV with OpenNI. Anyway I think it is good to know how to manually convert OpenNI frames to openCV frames, so I decided to follow this way. For capturing the color frame in OpenNI I tried the following:

WPF Jitters with TranslateTransform and Canvas.SetLeft

别来无恙 提交于 2019-12-12 06:24:24
问题 I'm running into a problem of "jitters" when moving the X, Y coordinates of controls. Basically, I got an animation to work two different ways: 1) TranslateTransform of the X property, and 2) A Timer that calls Canvas.SetLeft. Both of which cause the image to move, but not smoothly. XAML: <Canvas Margin="0" Name="CanvasContainer"> <Canvas Margin="0" Name="FirstCanvas" Background="White"> <Image Name="FirstImage" Opacity="1" Margin="0,0,0,0" Canvas.Left="0" Canvas.Top="0" Source="someImage.png

Get color Image not in the frame ready event

五迷三道 提交于 2019-12-12 05:38:14
问题 I have some problem with the kinect. when I try to get color Image from the event: Sensor_AllFramesReady everything is ok. example: using (ColorImageFrame colorFrame = e.OpenColorImageFrame()) { //save image for print if (colorFrame == null) { return; } byte[] colorData = new byte[colorFrame.PixelDataLength]; colorFrame.CopyPixelDataTo(colorData); int averagedImage = colorFrame.Width * PixelFormats.Bgr32.BitsPerPixel / 8; int stride = colorFrame.Width * 4; pictureBitmap = BitmapSource.Create