-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathindex.html
More file actions
60 lines (56 loc) · 2.53 KB
/
index.html
File metadata and controls
60 lines (56 loc) · 2.53 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>PoseLandmarker</title>
<link rel="stylesheet" href="./poseLandmarker/styles/reset.css">
<link rel="stylesheet" href="./poseLandmarker/styles/variables.css">
<link rel="stylesheet" href="./poseLandmarker/styles/main.css">
<script src="./poseLandmarker/src/main.js" type="module"></script>
<script src="./poseLandmarker/src/videoPose.js" type="module"></script>
</head>
<body class="flex-center-column">
<h1 class="ir-only">Still Img Skeleton Extractor </h1>
<div class="container still-img flex-center-column">
<div class="imgContainer">
<img
id="still-img"
src="./poseLandmarker/images/training-quad-focused-squat-variations-main-1024x683.jpg"
alt="Man perfoming squat with barbel equipped plates on both side"
>
</div>
<button id="image-skeleton-btn" class="btn">Generate Skeleton</button>
</div>
<div class="container video-section flex-center-column">
<h2 class="section-title">Video Skeleton Extractor</h2>
<div class="video-toolbar">
<label class="field">
<span>Source Video</span>
<select id="video-source-select">
<option value="./poseLandmarker/src/video/backSquat.mp4">backSquat.mp4</option>
</select>
</label>
<label class="field">
<span>FPS</span>
<input id="video-fps" type="number" min="1" max="120" step="1" value="30">
</label>
<button id="extract-video-btn" class="btn">Extract Video Skeleton</button>
<button id="play-overlay-btn" class="btn secondary-btn">Play Video + Skeleton</button>
<button id="download-skeleton-btn" class="btn secondary-btn">Download Skeleton JSON</button>
</div>
<p id="video-status" class="status-text">Run extraction. The page will keep the result in memory until you play or download it.</p>
<div class="videoPlayerContainer">
<video
id="source-video"
class="source-video"
preload="metadata"
crossorigin="anonymous"
>
<source src="./poseLandmarker/src/video/backSquat.mp4" type="video/mp4">
</video>
<canvas id="video-overlay" class="video-overlay"></canvas>
</div>
</div>
</body>
</html>