google-ai-edge / mediapipe

Cross-platform, customizable ML solutions for live and streaming media.
https://ai.google.dev/edge/mediapipe
Apache License 2.0
27.6k stars 5.16k forks source link

Get shapes from face_mesh with landmarks in desktop version #5649

Open SergeyGalaxyOrsik opened 1 month ago

SergeyGalaxyOrsik commented 1 month ago

I'm trying to get shapes like

classification {
  index: 49
  score: 0.69999576
  label: "mouthUpperUpRight"
}
classification {
  index: 50
  score: 3.5180938e-07
  label: "noseSneerLeft"
}
classification {
  index: 51
  score: 8.41376e-06
  label: "noseSneerRight"
}

I get this example from face_blendshapes_out.prototxt

And I don't know how to implement it in file like demo_run_graph_main.cc