kinect

Kinect skeleton Scaling strange behaviour

孤街浪徒 提交于 2019-11-29 23:33:06
问题 I am trying to scale a skeleton to match to the sizes of another skeleton. My algoritm do the following: Find the distance between two joints of the origin skeleton and the destiny skeleton using phytagorean teorem divide this two distances to find a multiply factor. Multiply each joint by this factor. Here is my actual code: public static Skeleton ScaleToMatch(this Skeleton skToBeScaled, Skeleton skDestiny) { Joint newJoint = new Joint(); double distanciaOrigem = 0; double distanciaDestino =

To calculate world coordinates from screen coordinates with OpenCV

為{幸葍}努か 提交于 2019-11-29 21:08:41
I have calculated the intrinsic and extrinsic parameters of the camera with OpenCV. Now, I want to calculate world coordinates (x,y,z) from screen coordinates (u,v). How I do this? N.B. as I use the kinect, I already know the z coordinate. Any help is much appreciated. Thanks! First to understand how you calculate it, it would help you if you read some things about the pinhole camera model and simple perspective projection. For a quick glimpse, check this . I'll try to update with more. So, let's start by the opposite which describes how a camera works: project a 3d point in the world

Kinect mapping color image to depth image in MATLAB

自古美人都是妖i 提交于 2019-11-29 16:47:05
I have collected data using Kinect v2 sensor and I have a depth map together with its corresponding RGB image. I also calibrated the sensor and obtained the rotation and translation matrix between the Depth camera and RGB camera. So I was able to reproject the depth values on the RGB image and they match. However, since the RGB image and the depth image are of different resolutions, there are a lot of holes in the resulting image. So I am trying to move the other way, i.e. mapping the color onto the depth instead of depth to color. So the first problem I am having is that the RGB image has 3

How to save kinect color video as stream on hard disk by Kinect SDK 2 in WPF

耗尽温柔 提交于 2019-11-29 14:37:47
I have a question about save kinect color video as stream How to save Kinect's color video as stream to hard by Kinect SDK 2 in WPF??? i read this link: Save Kinect's color camera video stream in to .avi video For a project, I had to do this. What I've done may not fulfill all your requirements but it may give you an idea. At first I saved every color frame image in local drive with a sequencial naming. Then with ffmpeg I converted those sequential image to video file, in my case it was mp4 video, not avi. To save color image frame sequentially, you may code like below, using System; using

Display the angles of each joint of the skeleton in kinect c#

百般思念 提交于 2019-11-29 12:46:40
How to display the angles of Kinect skeleton joints? This is the programm you are looking for: namespace Microsoft.Samples.Kinect.SkeletonBasics { using System.IO; using System.IO.Ports; using System.Threading; using System; using System.Windows; using System.Windows.Media; using Microsoft.Kinect; using Microsoft.Kinect.Toolkit.Fusion; using System.Windows.Media.Media3D; public class Angles { public double AngleBetweenTwoVectors(Vector3D vectorA, Vector3D vectorB) { double dotProduct; vectorA.Normalize(); vectorB.Normalize(); dotProduct = Vector3D.DotProduct(vectorA, vectorB); return (double

How can I access the Kinect/device via OpenNI?

别等时光非礼了梦想. 提交于 2019-11-29 12:15:34
I was looking over the documentation trying to find anything that will allow me the Kinect/device? I'm trying to get accelerometer data, but not sure how. So far there were two things I've spotted in the guide and docs: XnModuleDeviceInterface/xn::ModuleDevice and XnModuleLockAwareInterface/xn::ModuleLockAwareInterface . I'm wondering if I can use the ModuleDevice Get/Set methods to talk to the device and ask for accelerometer data. If so, how can I get started? Also, I was thinking, if it would be possible to 'lock' openni functionality temporarily while I try to get accelerometer data via

Kinect for Windows v2 depth to color image misalignment

耗尽温柔 提交于 2019-11-29 11:49:13
问题 currently I am developing a tool for the Kinect for Windows v2 (similar to the one in XBOX ONE). I tried to follow some examples, and have a working example that shows the camera image, the depth image, and an image that maps the depth to the rgb using opencv. But I see that it duplicates my hand when doing the mapping, and I think it is due to something wrong in the coordinate mapper part. here is an example of it: And here is the code snippet that creates the image (rgbd image in the

Extract projective homography from two Kinect depth maps

情到浓时终转凉″ 提交于 2019-11-29 11:43:12
问题 Given two consecutive 3D point clouds 1 and 2 (not the whole cloud, say 100 points selected from the cloud with OpenCV's GoodFeaturesToMatch), obtained from a Kinect depthmap, I want to compute camera's homography from 1 to 2. I understand that this a projective transform, and it has already been done by many people: here (slide 12), here (slide 30) and here in what seems to be the classic paper. My problem is that whilst I'm a competent programmer, I haven't got the math or trig skills to

C# Simulating multitouch with Kinect

我怕爱的太早我们不能终老 提交于 2019-11-29 11:08:56
I have a Kinect application that I can generate 1-4 distinct screen points (Left/Right hands for up to 2 people) and I would like to be able to send each Point to the application with focus as a multi touch message. I'm currently using SendInput to send mouse move, mouse down, and mouse up messages, but AFAIK, it doesn't support the WM_TOUCH messages. Does anyone know of an easy way to send multi touch messages in C#? As a test I would like to be able to use the Kinect in MS Paint, and paint with both hands (as well as all the colors of the wind) Ani What you want is to send messages to the

USB3 Controller & Kinect 2 [closed]

霸气de小男生 提交于 2019-11-29 09:33:05
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 9 months ago . I recently updated a PC to Windows 8.1 in order to make it compatible to Kinect v2. It's an ASUS N53S with the following specs: CPU: Intel Core i7 - 2670QM (2.2GHz) RAM: 16 GB GPU: GEForce GT 550M USB3 Controller: Fresco Logic xHCI When running Kinect v2 Configuration Verifier I get all items to green except