cheese
cheese copied to clipboard
What about using Shape Detection API (https://wicg.github.io/shape-detection-api/)? See it in action: https://beaufortfrancois.github.io/sandbox/media-recorder/mustache.html Source code: https://github.com/beaufortfrancois/sandbox/tree/gh-pages/media-recorder Shape Detection API can be wrapped to Polymer web component.
On browsers that support `getUserMedia` the app can access the device camera directly.
We could randomly increase/decrease the scale of each sticker, eg. +10% or -10% of original scale. We could use the randomize button to trigger this effect.
Vision API returns bounds after the rotation is applied. If there is a rotation, we can't know the aspect ratio of the face, hence we might risk to have a...