-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
play.html
33 lines (26 loc) · 1.42 KB
/
play.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<!DOCTYPE html>
<html>
<head>
<!----------- Imports ------------>
<!-- Require the peer dependencies of face-landmarks-detection. -->
<script src="https://unpkg.com/@tensorflow/tfjs-core@2.4.0/dist/tf-core.js"></script>
<script src="https://unpkg.com/@tensorflow/tfjs-converter@2.4.0/dist/tf-converter.js"></script>
<!-- You must explicitly require a TF.js backend if you're not using the tfjs union bundle. -->
<script src="https://unpkg.com/@tensorflow/tfjs-backend-webgl@2.4.0/dist/tf-backend-webgl.js"></script>
<!-- Require face-landmarks-detection itself. -->
<script src="https://unpkg.com/@tensorflow-models/face-landmarks-detection@0.0.1/dist/face-landmarks-detection.js"></script>
<script src="../MakeupHub/js/ThirdParty/painterro-1.2.58.min.js"></script>
<!-- Load Mathjs -->
<script src="https://unpkg.com/mathjs@9.2.0/lib/browser/math.js"> </script>
<link rel="stylesheet" href="./playScreen.css">
<meta charset="utf-8" />
</head>
<body>
<button id="paint">Make Up!</button>
<label><input type="checkbox" id="moonify" value="first_checkbox"> Moonify </label>
<input id="moonifySlider" type="range" min="1" max="200" value="100", disabled="true">
<video id= "webcamFrame" class="webcam" autoplay="true" height="480" width="640"> </video>
<canvas id="webcamCanvas" class="cnvs" height="480" width="640"></canvas>
<script type = "module" src="../MakeupHub/js/main.js"></script>
</body>
</html>