简要描述:
- 接口
接口版本:
版本号 | 制定人 | 制定日期 | 修订日期 |
---|---|---|---|
1.0.0 | 姜龙 | 2020-04-24 | 2020-04-24 |
private static extern int GetColorData(IntPtr destColorData);
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
destColorData | 是 | IntPtr | sensorData.colorImage的内存地址,byte[]型,RGBA格式,A值用不到,写死255就行。kinect彩色图图尺寸为1920*1080,奥比中光的为640 * 480 |
返回值 | 类型 | 说明 |
---|---|---|
return core | int | 0是成功,其他值为失败 |
private static extern int GetDepthData(IntPtr destDepthData);
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
destDepthData | 是 | IntPtr | sensorData.depthImage的内存地址,ushort[]型 ,kinect深度图尺寸为512*424,奥比中光的为320 * 240 |
返回值 | 类型 | 说明 |
---|---|---|
return core | int | 0是成功,其他值为失败 |
private static extern int GetBodyIndexData(IntPtr pBodyIndexData);
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
pBodyIndexData | 是 | IntPtr | sensorData.bodyIndexImage的内存地址,byte[]型,就是单通道图像数据格式,没有特殊要求 |
返回值 | 类型 | 说明 |
---|---|---|
return core | int | 0是成功,其他值为失败 |
private static extern int GetBodyData(int bodyIndex, ref ObtBody pbodyData);
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
bodyIndex | 是 | int | 骨骼index,没有特殊要求 |
obtBody | 是 | ObtBody | sensorData.bodyIndexImage的内存地址,byte[]型,就是RGBA图像数据格式,没有特殊要求 |
返回值 | 类型 | 说明 |
---|---|---|
return core | int | 0是成功,其他值为失败 |
ObtBody
字段 | 类型 | 空 | 默认 | 注释 |
---|---|---|---|---|
id | byte | 否 | 每次获取骨骼数据的时候这个值可能会变化 | |
joints | ObtJoint[] | 否 | 关节属性数组 | |
status | byte | 否 | 状态 |
ObtJoint
字段 | 类型 | 空 | 默认 | 注释 |
---|---|---|---|---|
type | byte | 否 | 关节类型 | |
status | byte | 否 | 关节状态 | |
depthPosition | Vector2 | 否 | 关节的深度坐标(没有引用) | |
worldPosition | Vector3 | 否 | 关节的世界坐标 | |
Orient | Orientation | 否 | 关节的方向四元数 |