Skip to content

Instantly share code, notes, and snippets.

@jefBinomed
Created December 3, 2020 12:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jefBinomed/7bfd4e41efff6b7c3a0bcb144f70daf2 to your computer and use it in GitHub Desktop.
Save jefBinomed/7bfd4e41efff6b7c3a0bcb144f70daf2 to your computer and use it in GitHub Desktop.
2020-fugu-face-detection-content
[
{
boudingBox: // DOMRectReadOnly / The position and size of the face
{
bottom: xxx.xxx // absolute bottom position in the image
height: xxx.xxx // absolute height in the image
left: xxx.xxx // absolute left position in the image
right: xxx.xxx // absolute right position in the image
top: xxx.xxx // absolute top position in the image
width: xxx.xxx // absolute width in the image
x: xxx.xxx // absolute left position in the image
y: xxx.xxx // absolute top position in the image
},
landmarks: // Some points to position eyes, mouth and nose
[
{
type: 'eye', // could be also 'mouth' or 'nose'
locations: // Array of point that you use to draw the part of face
[
{
x: xxx.xxx // left position of element in the image
y: xxx.xxx // right position of element in the image
}
, ...
]
}
,...
]
}
,...
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment