duan8/yolov8/include/types.h
lindsayshuo e2545131df
keypoints array with dynamic size based on kNumberOfPoints (#1570)
* Add the generation of multi-class pose engines

* Change grids in forwardGpu to one-dimensional arrays

* Update README.md

* Update types.h

keypoints array with dynamic size based on kNumberOfPoints

---------

Co-authored-by: lindsayshuo <lindsayshuo@foxmail.com.com>
2024-08-28 17:28:13 +08:00

19 lines
484 B
C

#pragma once
#include "config.h"
struct alignas(float) Detection {
//center_x center_y w h
float bbox[4];
float conf; // bbox_conf * cls_conf
float class_id;
float mask[32];
float keypoints[kNumberOfPoints * 3]; // keypoints array with dynamic size based on kNumberOfPoints
};
struct AffineMatrix {
float value[6];
};
const int bbox_element =
sizeof(AffineMatrix) / sizeof(float) + 1; // left, top, right, bottom, confidence, class, keepflag