The label annotation renderer derives display text from semantic detections.
BaseLabelStyle can use a class name, caller metadata, or a custom resolver and
can include confidence without storing presentation strings in model output.
session.setPresentation({
renderers: [
annotationRenderers.label({
style: new BaseLabelStyle({
background: { alpha: 0.9 },
includeConfidence: true,
textStyle: { fontSize: 14 },
}),
}),
],
});
Labels need a resolvable detection rectangle for placement, but the box layer does not need to be visible. Use placement and offset options to move text without changing the geometry.
See Interactive Picking for hover-only labels and selection-aware presentation.