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¶
the detection
bx1¶
mask box left, snapped to 4 px and clamped
by1¶
mask box top
bx2¶
mask box right
by2¶
mask box bottom
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.