-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
99 lines (97 loc) · 3.49 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<!-- Copyright 2020 Google LLC. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
==============================================================================-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta
name="description"
content="Web site created using create-react-app"
/>
<title>LipSync Engine</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="play-page-wrapper" class="page-wrapper play-el">
<div id="debug-score"></div>
<div id="compare_container">
<div id="your-prediction-wrapper">
<div id="your-prediction"></div>
<div>Prediction</div>
</div>
<div id="baseline-prediction-wrapper">
<div id="baseline-prediction"></div>
<div>Baseline</div>
</div>
</div>
<div id="camera-element-wrapper">
<div id="camera-feed-wrapper" class="camera-feed-wrapper">
<video id="camera-video" playsinline width="640" height="480"></video>
</div>
<div id="baseline-video-wrapper">
<canvas id="outputCanvas" width="480" height="640"></canvas>
<canvas id="camera-cropped-canvas" width="480" height="640"></canvas>
</div>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/[email protected]"></script>
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/[email protected]"></script>
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/[email protected]"></script>
<script src="https://cdn.jsdelivr.net/npm/@tensorflow-models/facemesh"></script>
<script src="./third_party/opencv/opencv.js" type="text/javascript"></script>
<script src="./third_party/facemesh/triangulation.js"></script>
<script src="./asset/js/lipsync-engine.js"></script>
<script type="module" src="./asset/js/index.js"></script>
<style>
#version-number {
position: absolute;
top: 10px;
right: 10px;
z-index: 999;
}
#outputCanvas {display: none;}
#camera-video{
position:absolute;
z-index: 1;
bottom: 0;
left: 0;
-webkit-transform: scaleX(-1);
display: none;
}
#baseline-video-wrapper{
display: flex;
justify-content: center;
align-items: center;
}
#debug-score{
font-size: 2em;
text-align: center;
font-weight: bold;
}
#compare_container{
display: flex;
justify-content: center;
align-items: center;
}
#your-prediction-wrapper{
text-align: center;
border: solid 1px;
}
#baseline-prediction-wrapper{
text-align: center;
border: solid 1px;
}
</style>
</body>
</html>