Class AzureKinectSensor
Component that captures all sensor streams and tracked bodies from the Azure Kinect device.
Implements
Inherited Members
Namespace: Microsoft.Psi.AzureKinect
Assembly: Microsoft.Psi.AzureKinect.x64.dll
Syntax
public class AzureKinectSensor : Subpipeline, ISourceComponent
Constructors
View SourceAzureKinectSensor(Pipeline, AzureKinectSensorConfiguration, DeliveryPolicy, DeliveryPolicy, String)
Initializes a new instance of the AzureKinectSensor class.
Declaration
public AzureKinectSensor(Pipeline pipeline, AzureKinectSensorConfiguration configuration = null, DeliveryPolicy defaultDeliveryPolicy = null, DeliveryPolicy bodyTrackerDeliveryPolicy = null, string name = "AzureKinectSensor")
Parameters
Type | Name | Description |
---|---|---|
Pipeline | pipeline | The pipeline to add the component to. |
AzureKinectSensorConfiguration | configuration | Configuration to use for the sensor. |
DeliveryPolicy | defaultDeliveryPolicy | An optional default delivery policy for the subpipeline (defaults is LatestMessage). |
DeliveryPolicy | bodyTrackerDeliveryPolicy | An optional delivery policy for sending the depth-and-IR images stream to the body tracker (default is LatestMessage). |
String | name | An optional name for the component. |
Properties
View SourceAllDevices
Gets a list of all available capture devices.
Declaration
public static IEnumerable<CameraDeviceInfo> AllDevices { get; }
Property Value
Type | Description |
---|---|
IEnumerable<CameraDeviceInfo> |
AzureKinectSensorCalibration
Gets the underlying device calibration (provided by Azure Kinect SDK).
Declaration
public Emitter<Calibration> AzureKinectSensorCalibration { get; }
Property Value
Type | Description |
---|---|
Emitter<Calibration> |
Bodies
Gets the emitter of lists of currently tracked bodies.
Declaration
public Emitter<List<AzureKinectBody>> Bodies { get; }
Property Value
Type | Description |
---|---|
Emitter<List<AzureKinectBody>> |
ColorImage
Gets the current image from the color camera.
Declaration
public Emitter<Shared<Image>> ColorImage { get; }
Property Value
Type | Description |
---|---|
Emitter<Shared<Image>> |
Configuration
Gets the sensor configuration.
Declaration
public AzureKinectSensorConfiguration Configuration { get; }
Property Value
Type | Description |
---|---|
AzureKinectSensorConfiguration |
DepthDeviceCalibrationInfo
Gets the Azure Kinect's depth device calibration information.
Declaration
public Emitter<IDepthDeviceCalibrationInfo> DepthDeviceCalibrationInfo { get; }
Property Value
Type | Description |
---|---|
Emitter<IDepthDeviceCalibrationInfo> |
DepthImage
Gets the current depth image.
Declaration
public Emitter<Shared<DepthImage>> DepthImage { get; }
Property Value
Type | Description |
---|---|
Emitter<Shared<DepthImage>> |
FrameRate
Gets the current frames-per-second actually achieved.
Declaration
public Emitter<double> FrameRate { get; }
Property Value
Type | Description |
---|---|
Emitter<System.Double> |
Imu
Gets the current IMU sample.
Declaration
public Emitter<ImuSample> Imu { get; }
Property Value
Type | Description |
---|---|
Emitter<ImuSample> |
InfraredImage
Gets the current infrared image.
Declaration
public Emitter<Shared<Image>> InfraredImage { get; }
Property Value
Type | Description |
---|---|
Emitter<Shared<Image>> |
Temperature
Gets the Kinect's temperature in degrees Celsius.
Declaration
public Emitter<float> Temperature { get; }
Property Value
Type | Description |
---|---|
Emitter<Single> |
Methods
View SourceGetInstalledCount()
Returns the number of Kinect for Azure devices available on the system.
Declaration
public static int GetInstalledCount()
Returns
Type | Description |
---|---|
System.Int32 | Number of available devices. |