-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathcam.html
78 lines (66 loc) · 1.83 KB
/
cam.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
<!DOCTYPE html>
<html>
<head>
<title>PoseNet - Camera Feed Demo</title>
<style>
body {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.canvas-container {
width: 320px;
max-width: 100%;
display: flex;
justify-content: center;
position: relative;
}
.camera-canvas {
position: absolute;
transform: scale(0.5, 0.5);
transform-origin: 0 0;
left: 10px;
top: 10px;
}
#main {
left: 0;
top: 0;
position: absolute;
}
.illustration-canvas {
border: 1px solid #eeeeee;
}
@media only screen and (max-width: 600px) {
.footer-text,
.dg {
display: none;
}
}
.video-local {
left: 0px;
top: 0px;
//position: absolute;
}
</style>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!-- <script src="https://unpkg.com/@tensorflow/tfjs"></script> -->
<!-- Load Posenet -->
<!-- <script src="https://unpkg.com/@tensorflow-models/posenet"></script> -->
<!-- <script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-converter"></script> -->
<!-- <script src="https://cdn.jsdelivr.net/npm/@tensorflow-models/facemesh"></script> -->
<!-- Load the Paper.js library -->
<!-- <script type="text/javascript" src="js/paper/paper-full.min.js"></script> -->
<!-- <script src="https://unpkg.com/[email protected]/runtime.js"></script> -->
<script type="text/javascript" src="js/main.js"></script>
</head>
<body>
<!-- <div class="canvas-container">
<div id="main">
<canvas id="output" class="camera-canvas"></canvas>
<canvas id="keypoints" class="camera-canvas"></canvas>
</div>
<canvas class="illustration-canvas"></canvas>
</div>-->
</body>
</html>