-
Notifications
You must be signed in to change notification settings - Fork 15
/
index.html
44 lines (36 loc) · 1.7 KB
/
index.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
34
35
36
37
38
39
40
41
42
43
44
<!--
// Face Control and Export
//
// by Vander R. N. Dias, a.k.a. imerso
// https://imerso.github.io
// https://github.com/imerso
-->
<!DOCTYPE html>
<html>
<head>
<title>face</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="css.css" type="text/css">
<link rel="icon" type="image/png" href="icon.png">
<!-- babylonjs -->
<script src="https://cdn.babylonjs.com/babylon.js"></script>
<script src="https://cdn.babylonjs.com/gui/babylon.gui.min.js"></script>
<script src="https://cdn.babylonjs.com/serializers/babylonjs.serializers.min.js"></script>
<script src="./webxr-polyfill.min.js"></script>
<!-- mediapipe pose tracking -->
<script src="https://cdn.jsdelivr.net/npm/@mediapipe/face_mesh/face_mesh.js" crossorigin="anonymous"></script>
<!-- application -->
<script type="module" src="./app.js"></script>
</head>
<body style="margin:0; overflow:hidden">
<canvas id="canvas" style="margin:0; object-fit:fill; width:100%; height:100%"></canvas>
<div style="position:absolute; right:10px; bottom:10px; width:320px; height:180px; border-style:solid; border-width:1px; border-color:#202020;">
<video id="video" muted=true autoplay playsinline style="margin:0; object-fit:fill; width:100%; height:100%;"></video>
</div>
<div id="fps" style="position:absolute; top:15px; right:10px; width:60px; height:20px; background-color: black; font-size: 16px; color: white;"></div>
</body>
</html>