Skip to content

sp500_yolo_segmentation

#include <sp500/yolo.h>

struct sp500_yolo_segmentation

One segmentation result. 11 floats; the layout of a SP500_YOLO_TASK_SEGMENT record.

Attributes

Member Description
det
bx1
by1
bx2
by2
mask_offset

det

sp500_yolo_detection det

the detection

bx1

float bx1

mask box left, snapped to 4 px and clamped

by1

float by1

mask box top

bx2

float bx2

mask box right

by2

float by2

mask box bottom

mask_offset

float mask_offset

Byte offset into output.mask of this box's mask, as a uint32 bit pattern in a float slot - read it with sp500_yolo_mask_offset(), never as a float. The mask is (bx2 - bx1) * (by2 - by1) bytes valued 0 or 1. SP500_YOLO_MASK_NONE means no mask was stored.