chromium/third_party/mediapipe/src/mediapipe/graphs/object_detection_3d/calculators/annotations_to_render_data_calculator.proto

// Copyright 2020 The MediaPipe Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//      http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

syntax = "proto2";

package mediapipe;

import "mediapipe/framework/calculator.proto";
import "mediapipe/util/color.proto";

message AnnotationsToRenderDataCalculatorOptions {
  extend CalculatorOptions {
    optional AnnotationsToRenderDataCalculatorOptions ext = 267644238;
  }

  // Specifies the landmarks to be connected in the drawing. For example, the
  // landmark_connections value of [0, 1, 1, 2] specifies two connections: one
  // that connects landmarks with index 0 and 1, and another that connects
  // landmarks with index 1 and 2.
  repeated int32 landmark_connections = 1;

  // Color of the landmarks.
  optional Color landmark_color = 2;
  // Color of the connections.
  optional Color connection_color = 3;

  // Thickness of the drawing of landmarks and connections.
  optional double thickness = 4 [default = 1.0];

  // Change color and size of rendered landmarks based on its z value.
  optional bool visualize_landmark_depth = 5 [default = true];
}