Repository navigation
Conversation
Collaborator
|
you are the winner. 5 minutes after creation. i dont think anyone can beat it for a while. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds face-metrics to Vision Detection — one line, following the
[PACKAGE](LINK) - DESCRIPTION.format from CONTRIBUTING.md.What it is — a zero-dependency ES module that runs in the browser and in Node. You feed it face landmarks (MediaPipe Face Mesh 468/478, dlib/iBUG 68) and it returns a mirror-symmetry index — the facial midline is fitted by least squares to the landmark pairs, so head tilt in the photo does not read as asymmetry — plus anthropometric ratios such as interocular/bizygomatic width, bigonial/bizygomatic width and the morphological facial index. Every number is returned together with the formula and the landmark indices that produced it.
Being straight about the category — this is the measurement step after detection, not a detector itself. The section currently holds two browser vision libraries (tracking.js, ocrad.js); this is the geometry layer that runs on top of whatever landmark model you already have. If you would rather keep this section to detectors, say so and I will close it rather than argue for a different slot.
It runs
npm test— 20 tests, no test framework, green on Node 18/20/22 via GitHub Actions.node bin/face-metrics.mjs landmarks.json.Licence — MIT, no dependencies, no network calls, no paid tier.
Disclosure — I am the author.