Skip to content

Implement head rotation using OpenCV SolvePnP#15

Merged
henryouly merged 15 commits intomainfrom
henryouly-head-rotate
May 10, 2022
Merged

Implement head rotation using OpenCV SolvePnP#15
henryouly merged 15 commits intomainfrom
henryouly-head-rotate

Conversation

@henryouly
Copy link
Collaborator

@henryouly henryouly commented May 10, 2022

This PR implements a head rotation animation controller using OpenCV's SolvePnP.

  • Added opencvplugin.bundle in Assets/Plugins. (Caveat: this is a M1 Apple SOC build so for now so it only runs on M1 Macbook, we need to make it multi-arch as a follow-up.)
  • Added face_model.txt in Assets/Resources. This contains the canonical face landmarks (3d) converted from mediapipe.
  • Updated head rotation tracking in UpperBodyAnimator.cs.
  • Added OpenCVPlugin.cpp.
  • Updated Unity Editor version to 2021.3.1f1

@henryouly henryouly requested a review from wixette May 10, 2022 06:27
@henryouly henryouly self-assigned this May 10, 2022
Copy link
Contributor

@wixette wixette left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@henryouly henryouly merged commit 7be1904 into main May 10, 2022
@henryouly henryouly deleted the henryouly-head-rotate branch May 13, 2022 06:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants