diff --git a/examples/grid_record.c b/examples/grid_record.c index aa90d7b..34f8111 100644 --- a/examples/grid_record.c +++ b/examples/grid_record.c @@ -570,6 +570,11 @@ int main(int argc, char **argv) .stale_ms = 8000, .required_zones = detcells[i].num_zones ? detcells[i].zone_ptrs : NULL, .required_zones_count = detcells[i].num_zones, + /* Label+score pill — белым текстом на полупрозрачном зелёном + * фоне (color_y/u/v). Шрифт DejaVu mounted из /fonts (см. compose). */ + .font_path = "/fonts/DejaVuSans-Bold.ttf", + .font_size = 16, + .label_bg_alpha = 200, }; if (cfc_overlay_create_detection_boxes(&dc, &detbox_overlays[i]) != 0) { fprintf(stderr, "[grid_record] detbox create failed для '%s'\n", @@ -608,6 +613,9 @@ int main(int argc, char **argv) .stale_ms = 8000, .required_zones = detcells[i].num_zones ? detcells[i].zone_ptrs : NULL, .required_zones_count = detcells[i].num_zones, + .font_path = "/fonts/DejaVuSans-Bold.ttf", + .font_size = 16, + .label_bg_alpha = 200, }; if (cfc_overlay_create_detection_boxes(&yc, &yw_detbox_overlays[i]) != 0) { fprintf(stderr, "[grid_record] yw detbox create failed для '%s'\n", diff --git a/include/cuframes_composer/overlay.h b/include/cuframes_composer/overlay.h index a67554d..fe9a71b 100644 --- a/include/cuframes_composer/overlay.h +++ b/include/cuframes_composer/overlay.h @@ -165,6 +165,13 @@ typedef struct cfc_overlay_detbox_config { * NULL или пустой массив → принимать все события. */ const char *const *required_zones; /* массив строк */ int required_zones_count; + + /* Label + confidence text над bbox. + * NULL font_path → рисовать только рамки (legacy behavior). + * Текст формата "