Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Mediapipe Blendshape tracker #45

Merged
merged 15 commits into from
Sep 9, 2024
Merged

Conversation

philipqueen
Copy link
Collaborator

@philipqueen philipqueen commented Jul 6, 2024

Use Mediapipe's update FaceLandmarker (V2) to extract blendshapes during face tracking.

Blendshapes are a new standard in facial mocap, based on their use in Apple's ARKit: https://developer.apple.com/documentation/ARKit/arfaceanchor/blendshapelocation

This tracker is not currently intended to be used in FreeMoCap proper. Blendshapes do not have any reason to be triangulated, so they do not fit well into the FreeMoCap pipeline (if more than 1 video is being tracked). However, this tracker will be useful as a standalone tool for animators, and we may someday have interest in adding a blendshape pipeline to FreeMoCap to increase our utility for animators.

Download Instructions:

To download this branch for testing, run pip install "skellytracker@git+https://github.com/freemocap/skellytracker@philip/mediapipe_blendshapes"

Run Instructions:

You can run the blendshape tracker on a video by running skellytracker_blendshapes in the terminal after installing this branch. You can provide with cli flags, or it will prompt you for, an input video path (-i), an output video path (-o), and an output csv path (-c).

TODOS:

  • Fix annotation
  • Create Recorder
  • Create Model Info
  • Figure out how to format to CSV properly
  • Test - has been tested in Blender by AJC

@ectomia
Copy link

ectomia commented Jul 6, 2024

20240705220646_1.mp4

Tested concept and functionality and aligns perfectly to industry standard, and uses the same dependencies as Freemocap
Options for output data format such as Json and csv recommended for cross platform application.

Will create a generic face mesh for export option for the Blender Export

@philipqueen philipqueen marked this pull request as ready for review September 4, 2024 15:36
@philipqueen philipqueen added the enhancement New feature or request label Sep 4, 2024
@philipqueen philipqueen merged commit 1d2b88d into main Sep 9, 2024
2 checks passed
@philipqueen philipqueen deleted the philip/mediapipe_blendshapes branch September 9, 2024 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants