A Pen by Hamed Bahrami on CodePen.
Created
January 18, 2019 04:23
-
-
Save wallacepreston/04be28000335015691bc6010d8c8824b to your computer and use it in GitHub Desktop.
React Facial Feature Tracking as a Component
This file contains 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
THIS IS A CHROME EXPERIMENT | |
<div id="demo"></div> |
This file contains 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
var props = { facialFeatureTracker: window.ReactFacialFeatureTracker }; | |
ReactDOM.render( React.createElement(window.Demo, props), document.getElementById('demo')); |
This file contains 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
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.4.2/react.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.4.2/react-dom.min.js"></script> | |
<script src="https://cdn.rawgit.com/hamedb89/react-facial-feature-tracker/master/build/demo.js"></script> | |
<script src="https://cdn.rawgit.com/hamedb89/react-facial-feature-tracker/master/build/react-facial-feature-tracker.js"></script> |
This file contains 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
.the-video { | |
position: relative | |
} | |
.the-video canvas { | |
position: absolute; | |
top: 0; | |
right: 0; | |
left: 0; | |
bottom: 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment