Azure kinect (四)opencv显示与人体跟踪器运行错误(持续更新中)

opencv显示
摘要由CSDN通过智能技术生成

运行代码时发现这样一个问题,待解决!在这里插入图片描述

#include<k4a/k4a.h>
#include<k4abt.h>

#include<opencv2/opencv.hpp>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>

#include<iostream>
#define Max_bodies 5

using namespace std;
using namespace cv;
int main()
{
   
	int device_amount;//设备数目
	k4a_device_t device = NULL;//设备
	k4a_result_t device_result;//设备打开结果
	k4a_device_configuration_t deviceConfig;//设备参数
	k4a_capture_t sensor_capture;//计录设备的捕获信息
	k4a_wait_result_t get_capture_result;//计录各个设备的捕获是否成功
	k4a_image_t rgbImage = NULL;//记录从捕获得到的rgb图
	k4a_image_t depthImage = NULL;//记录从捕获得到的depth图
	k4a_calibration_t sensor_calibration;//校准信息
	k4a_result_t get_tracker_result;//计录各个设备的捕获是否成功
	k4abt_tracker_t tracker = NULL ;//创建人体跟踪器
	k4abt_tracker_configuration_t tracker_config =  K4ABT_TRACKER_CONFIG_DEFAULT; //人体跟踪器参数

	int64_t get_colorImage_time;//时间戳的记录
	k4a_wait_result_t queue_capture_result;//计录设备的人体捕获入队是否返回值
	k4a_wait_result_t pop_frame_result;//计录设备的人体捕获出队是否返回值
	k4abt_frame_t body_frame;//有人图像的序列
	k4abt_skeleton_t skeleton[Max_bodies];//人体关节信息


	Mat cv_rgbImage_with_alpha ;
	Mat cv_rgbImage_no_alpha;
	Mat cv_depth;
	Mat cv_depth_8U;

	double position[32][3] = {
   0};

	device_amount = k4a_device_get_installed_count();
	cout << "发现"<< device_amount <<"台设备!" << endl;
	if (device_amount == 0) 
  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值