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 getConnections and getUVCoords functions #223

Merged
merged 3 commits into from
Oct 22, 2024

Conversation

ziyuan-linn
Copy link
Member

This PR implements the faceMesh.getConnections and faceMesh.getUVCoords functions.

See detail in #211.

@ziyuan-linn ziyuan-linn force-pushed the FaceMesh-connections-and-uv branch from f61cab7 to 2c13320 Compare October 21, 2024 21:50
Co-Authored-By: Daniel Shiffman <[email protected]>
@ziyuan-linn ziyuan-linn force-pushed the FaceMesh-connections-and-uv branch from 2c13320 to 5ef20ca Compare October 21, 2024 21:51
@shiffman
Copy link
Member

This is awesome, thank you!!! I'll leave open for any further discussion and merge tomorrow before I record my video. I'll use my own ml5.js build for the recording session and then we can work on publishing a new release later this week. (The video wouldn't come out for some time still.)

let a = face.keypoints[indexA];
let b = face.keypoints[indexB];
let c = face.keypoints[indexC];
const uvA = { x: 1 - uvCoords[indexA][0], y: uvCoords[indexA][1] };
Copy link
Member

Choose a reason for hiding this comment

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

Might not need the 1 - here I was messing around with inverting the x.

@shiffman
Copy link
Member

Merging! I am recording a video tutorial about this now! I will build a version of the library and if I encounter any issues I will make updates in a new branch. After I finish the session, we can prepare a new release! (If anyone wants to tune into the session send me an email or DM on Discord!)

@shiffman shiffman merged commit 9a4dd7e into main Oct 22, 2024
@shiffman shiffman mentioned this pull request Nov 12, 2024
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