35 lines
509 B
C++
35 lines
509 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
#include "frame/rect.h"
|
|
|
|
namespace rk3588 {
|
|
|
|
struct PosePoint2f {
|
|
float x = 0.0f;
|
|
float y = 0.0f;
|
|
};
|
|
|
|
struct PoseKeypoint {
|
|
PosePoint2f point{};
|
|
float score = 0.0f;
|
|
};
|
|
|
|
struct PoseItem {
|
|
Rect bbox{};
|
|
float score = 0.0f;
|
|
int track_id = -1;
|
|
std::vector<PoseKeypoint> keypoints;
|
|
};
|
|
|
|
struct PoseResult {
|
|
std::vector<PoseItem> items;
|
|
int img_w = 0;
|
|
int img_h = 0;
|
|
std::string model_name;
|
|
};
|
|
|
|
} // namespace rk3588
|