-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathplay.html
68 lines (54 loc) · 2.63 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<!-- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@0.9.2/css/bulma.min.css"> -->
<link rel="stylesheet" type="text/css" href="style.css">
<script src="js/char.js"></script>
<script>
// console.log(parent.document.URL.substring(parent.document.URL.indexOf('?'), parent.document.URL.length));
// console.log()
var regex = /[?&]([^=#]+)=([^&#]*)/g,
url = window.location.href,
params = {},
match;
while(match = regex.exec(url)) {
params[match[1]] = match[2];
}
console.log(params)
</script>
<script src="https://cdn.jsdelivr.net/npm/@mediapipe/camera_utils/camera_utils.js" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/@mediapipe/control_utils/control_utils.js" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/@mediapipe/drawing_utils/drawing_utils.js" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/@mediapipe/hands/hands.js" crossorigin="anonymous"></script>
<script src="js/annyang.min.js"></script>
</head>
<body>
<div class="container">
<video class="input_video"></video>
<canvas class="output_canvas" width="1280px" height="720px"></canvas>
<!-- <canvas id="c" width="1280px" height="720px"></canvas> -->
</div>
<div id ="char3" style="position :absolute; right: 0px; bottom: 0px; text-align: center; font-family: raleway; padding-right: 20px; padding-bottom: 20px;">
<!-- <p style="color: whitesmoke; font-weight: bold; font-size: larger; transform: translateY(300%);"> Change Character</p> -->
<img src="img/bottle.png" id = "change-image" style="background-color: rgb(22, 22, 22 ,0.2);">
<p style="color: whitesmoke; font-weight: bold; font-size: larger; "> Change Character</p>
</div>
<div id ="c">
</div>
<div id ="wrapper">
</div>
<!-- The main Three.js file -->
<script src='https://cdnjs.cloudflare.com/ajax/libs/three.js/108/three.min.js'></script>
<!-- This brings in the ability to load custom 3D objects in the .gltf file format. Blender allows the ability to export to this format out the box -->
<script src='https://cdn.jsdelivr.net/gh/mrdoob/Three.js@r92/examples/js/loaders/GLTFLoader.js'></script>
<script src = "js/three.min.js"></script>
<script src="js/GLTFLoader.js"></script>
<script src="js/OrbitControls.js"></script>
<script type="module" src="js/media.js"> </script>
<script src="js/speech.js" type="module"></script>
<script src="js/script.js" type="module"></script>
<script src="js/script2.js" type="module"></script>
<!-- <script src="js/script3.js" type="module"></script> -->
</body>
</html>