input_stream: "image" output_stream: "rendering" output_stream: "detections" # Subgraph that detects faces. node { calculator: "FaceDetectionFrontCpu" input_stream: "IMAGE:image" output_stream: "DETECTIONS:detections" } # Converts the detections to drawing primitives for annotation overlay. node { calculator: "DetectionsToRenderDataCalculator" input_stream: "DETECTIONS:detections" output_stream: "RENDER_DATA:render_data" options: { [mediapipe.DetectionsToRenderDataCalculatorOptions.ext] { thickness: 4.0 color { r: 255 g: 0 b: 0 } } } } # Draws annotations and overlays them on top of the input images. node { calculator: "AnnotationOverlayCalculator" input_stream: "IMAGE:image" input_stream: "render_data" output_stream: "IMAGE:rendering" }