mediapipe-rs/mediapipe/graphs/tracking/subgraphs/renderer_cpu.pbtxt

30 lines
838 B
Plaintext
Raw Normal View History

2022-03-01 13:04:01 +01:00
# MediaPipe object tracking rendering subgraph.
type: "RendererSubgraphCpu"
input_stream: "IMAGE:input_image"
input_stream: "DETECTIONS:detections"
output_stream: "IMAGE:output_image"
# Converts the detections to drawing primitives for annotation overlay.
node {
calculator: "DetectionsToRenderDataCalculator"
input_stream: "DETECTIONS:detections"
output_stream: "RENDER_DATA:detections_render_data"
node_options: {
[type.googleapis.com/mediapipe.DetectionsToRenderDataCalculatorOptions] {
thickness: 4.0
color { r: 255 g: 0 b: 0 }
render_detection_id: true
}
}
}
# Draws annotations and overlays them on top of the input images.
node {
calculator: "AnnotationOverlayCalculator"
input_stream: "IMAGE:input_image"
input_stream: "detections_render_data"
output_stream: "IMAGE:output_image"
}