Last active
June 25, 2020 06:50
-
-
Save risenW/ae7269030907e2aa468ea2c0062ebee3 to your computer and use it in GitHub Desktop.
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<!-- Required meta tags --> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs"></script> | |
<script src="https://cdn.jsdelivr.net/npm/@tensorflow-models/facemesh"></script> | |
<!-- Bootstrap CSS --> | |
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" | |
integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous"> | |
<!-- Latest compiled and minified plotly.js JavaScript --> | |
<script src="https://cdn.plot.ly/plotly-latest.min.js" charset="utf-8"></script> | |
<title>3D Face Mesh</title> | |
</head> | |
<body> | |
<div class="container"> | |
<div class="row text-center" style="margin-top: 100px;"> | |
<hr> | |
<div class="col-md-6"> | |
<video autoplay playsinline muted id="webcam" width="300" height="400"></video> | |
<hr> | |
<button class="btn btn-info" id="capture">Capture</button> | |
<button class="btn btn-info" id="stop">Stop</button> | |
</div> | |
<div class="col-md-6"> | |
<div id="plot" style="width: 500px; height: 600px;"> | |
</div> | |
</div> | |
</div> | |
</div> | |
<!-- Optional JavaScript --> | |
<script src="index.js"></script> | |
<!-- jQuery first, then Popper.js, then Bootstrap JS --> | |
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js" | |
integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI" | |
crossorigin="anonymous"></script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment