Spaces:
Running
Running
Update index.html
Browse files- index.html +64 -19
index.html
CHANGED
|
@@ -1,19 +1,64 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
</
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>NBA Pose Detector</title>
|
| 7 |
+
<link rel="stylesheet" href="style.css">
|
| 8 |
+
</head>
|
| 9 |
+
<body>
|
| 10 |
+
<div class="bg-decoration">
|
| 11 |
+
<div class="court-line"></div>
|
| 12 |
+
<div class="court-line"></div>
|
| 13 |
+
</div>
|
| 14 |
+
|
| 15 |
+
<div class="container">
|
| 16 |
+
<div class="header">
|
| 17 |
+
<h1 class="title">π NBA POSE DETECTOR</h1>
|
| 18 |
+
<p class="subtitle">Analyze your basketball pose with AI and discover your NBA star match!</p>
|
| 19 |
+
</div>
|
| 20 |
+
|
| 21 |
+
<div class="main-content">
|
| 22 |
+
<div class="camera-section">
|
| 23 |
+
<div class="camera-header">
|
| 24 |
+
<h2 class="camera-title">π· Camera Feed</h2>
|
| 25 |
+
<div class="status-indicator" id="statusIndicator"></div>
|
| 26 |
+
</div>
|
| 27 |
+
|
| 28 |
+
<div class="canvas-container">
|
| 29 |
+
<canvas id="canvas"></canvas>
|
| 30 |
+
<div class="loading-spinner" id="loadingSpinner"></div>
|
| 31 |
+
</div>
|
| 32 |
+
|
| 33 |
+
<button class="start-btn" onclick="init()" id="startBtn" style="opacity: 0.6;">
|
| 34 |
+
β³ Loading...
|
| 35 |
+
</button>
|
| 36 |
+
</div>
|
| 37 |
+
|
| 38 |
+
<div class="results-section">
|
| 39 |
+
<h2 class="results-title">
|
| 40 |
+
π
|
| 41 |
+
Detection Results
|
| 42 |
+
</h2>
|
| 43 |
+
<div id="label-container">
|
| 44 |
+
<div style="text-align: center; color: #888; padding: 40px;">
|
| 45 |
+
<p>Click the "Start Detection" button to activate the pose detection.</p>
|
| 46 |
+
<p style="margin-top: 10px; font-size: 0.9rem;">Strike your best basketball pose! π</p>
|
| 47 |
+
</div>
|
| 48 |
+
</div>
|
| 49 |
+
</div>
|
| 50 |
+
</div>
|
| 51 |
+
|
| 52 |
+
<div class="footer">
|
| 53 |
+
<p class="footer-text">
|
| 54 |
+
Powered by Teachable Machine & TensorFlow.js |
|
| 55 |
+
<span style="color: #ffd700;">Let AI reveal your basketball potential!</span>
|
| 56 |
+
</p>
|
| 57 |
+
</div>
|
| 58 |
+
</div>
|
| 59 |
+
|
| 60 |
+
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@1.3.1/dist/tf.min.js"></script>
|
| 61 |
+
<script src="https://cdn.jsdelivr.net/npm/@teachablemachine/pose@0.8/dist/teachablemachine-pose.min.js"></script>
|
| 62 |
+
<script src="script.js"></script>
|
| 63 |
+
</body>
|
| 64 |
+
</html>
|