-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.html
More file actions
53 lines (45 loc) · 1.9 KB
/
main.html
File metadata and controls
53 lines (45 loc) · 1.9 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>姿态估计</title>
<!-- 样式文件 -->
<link rel="stylesheet" href="src/styles/main.css">
<meta name="description" content="基于TensorFlow.js的姿态估计">
<!-- TensorFlow.js Scripts - 使用指定版本避免source map 404错误 -->
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-core@4.15.0/dist/tf-core.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-converter@4.15.0/dist/tf-converter.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-backend-webgl@4.15.0/dist/tf-backend-webgl.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@tensorflow-models/pose-detection@2.1.3/dist/pose-detection.min.js"></script>
<script src="oneEuroFilter.js"></script>
</head>
<body>
<h1>🤖 姿态估计 - Pose Estimator 🎯</h1>
<!-- 加载状态显示 -->
<div id="loading-status" style="
display: none;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: rgba(0, 0, 0, 0.8);
color: white;
padding: 20px 40px;
border-radius: 8px;
font-size: 16px;
z-index: 9999;
text-align: center;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
">
<div style="margin-bottom: 10px;">🤖 姿态估计器</div>
<div id="loading-message">正在初始化...</div>
<div style="margin-top: 15px; font-size: 12px; opacity: 0.8;">首次加载可能需要较长时间</div>
</div>
<div class="canvas-container">
<canvas id="canvas" width="640" height="480"></canvas>
</div>
<!-- 主要脚本 - 使用ES6模块 -->
<script type="module" src="src/main.js?v=3.1"></script>
</body>
</html>