-
-
Notifications
You must be signed in to change notification settings - Fork 22
/
index.html
66 lines (66 loc) · 3.53 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
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<title>Selfie Anywhere</title>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<link rel='stylesheet' type='text/css' media='screen' href='style/selfie-anywhere.css'>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<script src="//code.jquery.com/jquery-3.3.1.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@1.2"></script>
<script src="https://cdn.jsdelivr.net/npm/@tensorflow-models/body-pix@2.0"></script>
<script src='js/html2canvas.min.js'></script>
<script type="text/javascript" src="https://unpkg.com/webcam-easy/dist/webcam-easy.min.js"></script>
<script src='js/webcam-ui-lib.js'></script>
</head>
<body>
<main id="selfie-anywhere-app">
<div class="form-control webcam-start" id="webcam-control">
<label class="form-switch">
<input type="checkbox" id="webcam-switch">
<i></i>
<span id="webcam-caption">Click to Start Camera</span>
</label>
</div>
<div id="errorMsg" class="col-12 alert-danger d-none">
Fail to start camera <br/>
Please allow permision to access camera <br/>
If you are browsing through social media built in browsers, <br/>
you would need to open the page in Sarafi (iPhone)/ Chrome (Android)
</div>
<div class="row m-0 selfie-container">
<div class="col-8 offset-2 col-sm-5 offset-sm-4 col-lg-3 offset-lg-5">
<img src="images/selfie-outline.png" alt="selfie">
</div>
</div>
<div class="md-modal md-effect-12">
<div id="app-panel" class="app-panel md-content">
<div id="webcam-container" class="webcam-container d-none">
<video id="webcam" autoplay playsinline width="640" height="480"></video>
<div id="selfie-container">
<div id="background-container">
<div class="spinner-border d-none" role="status">
<span class="sr-only">Loading...</span>
</div>
</div>
<canvas id="canvasPerson" width="640" height="480"></canvas>
</div>
<div class="flash"></div>
</div>
<img id="arrowLeft" src="images/arrow-left.png">
<img id="arrowRight" src="images/arrow-right.png">
<div id="cameraControls" class="cameraControls">
<a href="#" id="exit-app" title="Exit App" class="d-none"><i class="material-icons">exit_to_app</i></a>
<a href="#" id="take-photo" title="Take Photo"><i class="material-icons">camera_alt</i></a>
<a href="#" id="download-photo" download="selfie.png" target="_blank" title="Save Photo" class="d-none"><i class="material-icons">file_download</i></a>
<a href="#" id="resume-camera" title="Resume Camera" class="d-none"><i class="material-icons">camera_front</i></a>
</div>
</div>
</div>
<div class="md-overlay"></div>
</main>
<script src='js/selfie-anywhere.js'></script>
</body>
</html>