Skip to content

Commit

Permalink
log all blendshapes and show only a few of them live. LOOK AT WHAT WE…
Browse files Browse the repository at this point in the history
… CAN DO NOW 🥳🥳
  • Loading branch information
Wumpf committed Mar 21, 2024
1 parent 0820a50 commit a1c42c1
Showing 1 changed file with 57 additions and 47 deletions.
104 changes: 57 additions & 47 deletions examples/python/face_tracking/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,58 +30,58 @@

# uncomment blendshapes of interest
BLENDSHAPES_CATEGORIES = {
# "_neutral",
# "browDownLeft",
# "browDownRight",
# "browInnerUp",
# "browOuterUpLeft",
# "browOuterUpRight",
# "cheekPuff",
# "cheekSquintLeft",
# "cheekSquintRight",
"_neutral",
"browDownLeft",
"browDownRight",
"browInnerUp",
"browOuterUpLeft",
"browOuterUpRight",
"cheekPuff",
"cheekSquintLeft",
"cheekSquintRight",
"eyeBlinkLeft",
"eyeBlinkRight",
# "eyeLookDownLeft",
# "eyeLookDownRight",
# "eyeLookInLeft",
# "eyeLookInRight",
# "eyeLookOutLeft",
# "eyeLookOutRight",
# "eyeLookUpLeft",
# "eyeLookUpRight",
"eyeLookDownLeft",
"eyeLookDownRight",
"eyeLookInLeft",
"eyeLookInRight",
"eyeLookOutLeft",
"eyeLookOutRight",
"eyeLookUpLeft",
"eyeLookUpRight",
"eyeSquintLeft",
"eyeSquintRight",
"eyeWideLeft",
"eyeWideRight",
# "jawForward",
# "jawLeft",
"jawForward",
"jawLeft",
"jawOpen",
# "jawRight",
# "mouthClose",
# "mouthDimpleLeft",
# "mouthDimpleRight",
# "mouthFrownLeft",
# "mouthFrownRight",
# "mouthFunnel",
# "mouthLeft",
# "mouthLowerDownLeft",
# "mouthLowerDownRight",
# "mouthPressLeft",
# "mouthPressRight",
# "mouthPucker",
# "mouthRight",
# "mouthRollLower",
# "mouthRollUpper",
# "mouthShrugLower",
# "mouthShrugUpper",
"jawRight",
"mouthClose",
"mouthDimpleLeft",
"mouthDimpleRight",
"mouthFrownLeft",
"mouthFrownRight",
"mouthFunnel",
"mouthLeft",
"mouthLowerDownLeft",
"mouthLowerDownRight",
"mouthPressLeft",
"mouthPressRight",
"mouthPucker",
"mouthRight",
"mouthRollLower",
"mouthRollUpper",
"mouthShrugLower",
"mouthShrugUpper",
"mouthSmileLeft",
"mouthSmileRight",
# "mouthStretchLeft",
# "mouthStretchRight",
# "mouthUpperUpLeft",
# "mouthUpperUpRight",
# "noseSneerLeft",
# "noseSneerRight",
"mouthStretchLeft",
"mouthStretchRight",
"mouthUpperUpLeft",
"mouthUpperUpRight",
"noseSneerLeft",
"noseSneerRight",
}


Expand Down Expand Up @@ -435,12 +435,22 @@ def main() -> None:
rr.script_setup(
args,
"rerun_example_mp_face_detection",
# The Viewer's automatic Space View creation gets the layout for this example almost right!
# But depending on soon how data comes it might create undesired views at first.
# So instead, we specify the Blueprint manually to get the desired layout even if face has been detected yet.
blueprint=rrb.Horizontal(
rrb.Spatial3DView(origin="reconstruction"),
rrb.Vertical(rrb.Spatial2DView(origin="video"), rrb.TimeSeriesView(origin="blendshapes")),
rrb.Vertical(
rrb.Spatial2DView(origin="video"),
rrb.TimeSeriesView(
origin="blendshapes",
# Enable only certain blend shapes by default. More can be added in the viewer ui
contents=[
"+ blendshapes/0/eyeBlinkLeft",
"+ blendshapes/0/eyeBlinkRight",
"+ blendshapes/0/jawOpen",
"+ blendshapes/0/mouthSmileLeft",
"+ blendshapes/0/mouthSmileRight",
],
),
),
),
)

Expand Down

0 comments on commit a1c42c1

Please sign in to comment.