使用多个Kinects SDK 1.8进行Kinect人脸跟踪 [英] Kinect Face Tracking Using Multiple Kinects SDK 1.8

查看:68
本文介绍了使用多个Kinects SDK 1.8进行Kinect人脸跟踪的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试同时使用2个Kinect来跟踪赛道,但我的软件只跟踪第一个Kinect,即使
我几乎可以同时使用这两个传感器。

var faceTrackingViewerBinding = new Binding("Kinect") { Source = sensorChooser };

            faceTrackingViewer.SetBinding(FaceTrackingViewer.KinectProperty,     faceTrackingViewerBinding);


        sensorChooser.KinectChanged += SensorChooserOnKinectChanged;

        sensorChooser.Start();

我无法告诉"faceTrackingViewer"使用一个或两个传感器:

foreach (var sensorItem in KinectSensor.KinectSensors)
        {

            if (sensorItem.Status == KinectStatus.Connected)
            {
                this.sensorB = sensorItem;
                this.sensorA = sensorItem;
                break; // TODO: might not be correct. Was : Exit For
            }
        }
        this.sensorA = KinectSensor.KinectSensors[0];
        this.sensorB = KinectSensor.KinectSensors[1];




推荐答案

您只能为faceTracker技术的每个实例设置一个KinectSensor。如果您想要对两个传感器进行面部跟踪,您将创建2个FaceTracking对象实例,并为每个传感器传入不同的传感器。这是关键,因为你不能将身体
数据从一个传感器传递到另一个传感器,因为不同的相机空间完全不同,因此跟踪将是不正确的。

You can only set one KinectSensor for each instance of the faceTracker tech. If you want facetracking for both sensors, you would create 2 instances of the FaceTracking object and pass in a different sensor for each. This is key since you cannot pass body data from one sensor to the other given that the different camera spaces are completely different so tracking will be incorrect.


这篇关于使用多个Kinects SDK 1.8进行Kinect人脸跟踪的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆