kinect

Finger/Hand Gesture Recognition using Kinect

流过昼夜 提交于 2019-11-28 18:29:35
Let me explain my need before I explain the problem. I am looking forward for a hand controlled application. Navigation using palm and clicks using grab/fist. Currently, I am working with Openni, which sounds promising and has few examples which turned out to be useful in my case, as it had inbuild hand tracker in samples. which serves my purpose for time being. What I want to ask is, 1) what would be the best approach to have a fist/grab detector ? I trained and used Adaboost fist classifiers on extracted RGB data, which was pretty good, but, it has too many false detections to move forward.

To calculate world coordinates from screen coordinates with OpenCV

无人久伴 提交于 2019-11-28 17:15:22
问题 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! 回答1: 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.

Converting Kinect Methods from Beta 2, to Version 1

我的梦境 提交于 2019-11-28 14:20:51
So I have convert the getDisplayPosition from the beta version of the Kinect SDK to the full version. Here's what I have right now The Original private Point getDisplayPosition(Joint joint) { float depthX, depthY; nui.SkeletonEngine.SkeletonToDepthImage(joint.Position, out depthX, out depthY); depthX = Math.Max(0, Math.Min(depthX * 320, 320)); //convert to 320, 240 space depthY = Math.Max(0, Math.Min(depthY * 240, 240)); //convert to 320, 240 space int colorX, colorY; ImageViewArea iv = new ImageViewArea(); // only ImageResolution.Resolution640x480 is supported at this point nui.NuiCamera

kinect 2 in ubuntu 16.04

自作多情 提交于 2019-11-28 11:20:21
1. 下载libfreenect2文件: git clone https://github.com/OpenKinect/libfreenect2.git 2. install lib: a. sudo apt-get install build-essential cmake pkg-config b. sudo apt-get install libusb-1.0-0-dev c. sudo apt-get install libturbojpeg libjpeg-turbo8-dev d. sudo apt-get install libglfw3-dev e. optional: sudo apt-get install beignet-dev sudo apt-get install libva-dev libjpeg-dev (for intel) sudo apt-get install libopenni2-dev 3.编译: a. mkdir build, b. cd build, c. cmake .. -DCMAKE_INSTALL_PREFIX=$HOME/freenect2, d. make, e. make install 4.测试:a. sudo cp ../platform/linux/udev/90-kinect2.rules /etc/udev

Kinect mapping color image to depth image in MATLAB

巧了我就是萌 提交于 2019-11-28 10:36:40
问题 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

Kinect crop image

你。 提交于 2019-11-28 09:23:24
I'm trying to crop a rectangular region of a video RGB. First i found the coordinates of head joint and with this coordinates i drew a rectangle over the RGB video. Now i want to show in another video just the image that is inside of the rentangle in the first image. Any help would be great. video RGB is displayed in a "RGBvideo" Image Control. cropped image i want to display in a "faceImage" Image Control I've search online but couldn't find a solution to it. I am confuse. thank you so much Welcome to Stack Overflow, please don't ask the same question multiple times. With less popular tags

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

白昼怎懂夜的黑 提交于 2019-11-28 08:42:23
问题 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 回答1: 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

How to initialize multiple OpenNI sensors with OpenCV

自闭症网瘾萝莉.ら 提交于 2019-11-28 06:59:10
问题 I'd like to use two Asus Xtion Pro sensors with OpenCV (2.4.4) and not sure how to initialize both devices. I can initialize one like so: VideoCapture capture; capture.open(CV_CAP_OPENNI); How can I initialize two VideoCapture instances for two separate sensors ? 回答1: Turns out it's as simple as this: VideoCapture sensor1;sensor1.open(CV_CAP_OPENNI_ASUS); VideoCapture sensor2;sensor2.open(CV_CAP_OPENNI_ASUS+1); A very basic runnable example is: #include "opencv2/core/core.hpp" #include

Comparing a saved movement with other movement with Kinect

家住魔仙堡 提交于 2019-11-28 06:35:06
I need to develop an application where a user (physiotherapist) will perform a movement in front of the Kinect, I'll write the data movement in the database and then the patient will try to imitate this motion. The system will calculate the similarity between the movement recorded and executed. My first idea is, during recording (each 5 second, by example), to store the position (x, y, z) of the points and then compare them in the execution time(by patient). I know that this approach is too simple, because I imagine that in people of different sizes the skeleton is recognized differently, so

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

可紊 提交于 2019-11-28 06:27:26
问题 How to display the angles of Kinect skeleton joints? 回答1: 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;