Spaces:
Running
Running
Upload index.html
Browse files- index.html +42 -17
index.html
CHANGED
|
@@ -1,20 +1,45 @@
|
|
| 1 |
<!DOCTYPE html>
|
| 2 |
<html lang="en">
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
<
|
| 16 |
-
|
| 17 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
</div>
|
| 19 |
-
|
| 20 |
-
</
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
<!DOCTYPE html>
|
| 2 |
<html lang="en">
|
| 3 |
+
|
| 4 |
+
<head>
|
| 5 |
+
<meta charset="UTF-8" />
|
| 6 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
| 7 |
+
<title>Transformers.js | Real-time object detection</title>
|
| 8 |
+
<script type="module" crossorigin src="/assets/index-C0Q5FIv3.js"></script>
|
| 9 |
+
<link rel="stylesheet" crossorigin href="/assets/index-DMNAdTgA.css">
|
| 10 |
+
</head>
|
| 11 |
+
|
| 12 |
+
<body>
|
| 13 |
+
<h1>
|
| 14 |
+
Real-time object detection w/
|
| 15 |
+
<a href="http://github.com/xenova/transformers.js" target="_blank">🤗 Transformers.js</a>
|
| 16 |
+
</h1>
|
| 17 |
+
<h4>
|
| 18 |
+
Runs locally in your browser, powered by
|
| 19 |
+
<a href="https://github.com/WongKinYiu/yolov9" target="_blank">YOLOv9</a>
|
| 20 |
+
</h4>
|
| 21 |
+
<div id="container">
|
| 22 |
+
<video id="video" autoplay muted playsinline></video>
|
| 23 |
+
<canvas id="canvas" width="360" height="240"></canvas>
|
| 24 |
+
<div id="overlay"></div>
|
| 25 |
+
</div>
|
| 26 |
+
<div id="controls">
|
| 27 |
+
<div>
|
| 28 |
+
<label>Image size</label>
|
| 29 |
+
(<label id="size-value">128</label>)
|
| 30 |
+
<br>
|
| 31 |
+
<input id="size" type="range" min="64" max="256" step="32" value="128" disabled>
|
| 32 |
</div>
|
| 33 |
+
<div>
|
| 34 |
+
<label>Threshold</label>
|
| 35 |
+
(<label id="threshold-value">0.25</label>)
|
| 36 |
+
<br>
|
| 37 |
+
<input id="threshold" type="range" min="0.01" max="1" step="0.01" value="0.25" disabled>
|
| 38 |
+
</div>
|
| 39 |
+
</div>
|
| 40 |
+
<label id="status"></label>
|
| 41 |
+
|
| 42 |
+
|
| 43 |
+
</body>
|
| 44 |
+
|
| 45 |
+
</html>
|