Go to the documentation of this file.
19 #ifndef AVUTIL_DETECTION_BBOX_H
20 #define AVUTIL_DETECTION_BBOX_H
36 #define AV_DETECTION_BBOX_LABEL_NAME_MAX_SIZE 64
50 #define AV_NUM_DETECTION_BBOX_CLASSIFY 4
This structure describes decoded (raw) audio or video data.
AVDetectionBBoxHeader * av_detection_bbox_alloc(uint32_t nb_bboxes, size_t *out_size)
Allocates memory for AVDetectionBBoxHeader, plus an array of.
AVDetectionBBoxHeader * av_detection_bbox_create_side_data(AVFrame *frame, uint32_t nb_bboxes)
Allocates memory for AVDetectionBBoxHeader, plus an array of.
#define AV_DETECTION_BBOX_LABEL_NAME_MAX_SIZE
char detect_label[AV_DETECTION_BBOX_LABEL_NAME_MAX_SIZE]
Detect result with confidence.
static av_always_inline AVDetectionBBox * av_get_detection_bbox(const AVDetectionBBoxHeader *header, unsigned int idx)
AVRational classify_confidences[AV_NUM_DETECTION_BBOX_CLASSIFY]
#define av_assert0(cond)
assert() equivalent, that is always enabled.
Rational number (pair of numerator and denominator).
char classify_labels[AV_NUM_DETECTION_BBOX_CLASSIFY][AV_DETECTION_BBOX_LABEL_NAME_MAX_SIZE]
static const uint8_t header[24]
AVRational detect_confidence
int x
Distance in pixels from the left/top edge of the frame, together with width and height,...
#define AV_NUM_DETECTION_BBOX_CLASSIFY
At most 4 classifications based on the detected bounding box.