tacsotai / flutter_mediapipe

BSD 3-Clause "New" or "Revised" License
23 stars 8 forks source link

Hide rectangles and landmarks #3

Closed tacsotai closed 3 years ago

tacsotai commented 3 years ago

This is a sample for editing graph of mediapipe.

tacsotai commented 3 years ago

Done.

Graph (If need)

When editing graphs or subgraphs, Build again.

  • graphs: binary graph
  • subgraphs: jniLibs
vi mediapipe/graphs/face_mesh/subgraphs/face_renderer_gpu.pbtxt

It is a sample to comment out of lines from 92 to 94 for hiding rectangles and landmarks.

# Draws annotations and overlays them on top of the input images.
node {
  calculator: "AnnotationOverlayCalculator"
  input_stream: "IMAGE_GPU:input_image"
#  input_stream: "detections_render_data"
#  input_stream: "VECTOR:0:multi_face_landmarks_render_data"
#  input_stream: "rects_render_data"
  output_stream: "IMAGE_GPU:output_image"
}