Upload 3 files
Browse files- assets/index-CX2MTg_Z.css +1 -0
- assets/index-siDr-iE1.js +0 -0
- index.html +8 -2
assets/index-CX2MTg_Z.css
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
*{box-sizing:border-box;padding:0;margin:0;font-family:sans-serif}html,body{height:100%}body{padding:16px 32px}body,#container{display:flex;flex-direction:column;justify-content:center;align-items:center}#controls{display:flex;padding:1rem;gap:1rem}#controls>div{text-align:center}h1,h4{text-align:center}h4{margin-top:.5rem}#container{position:relative;width:720px;height:405px;max-width:100%;max-height:100%;border:2px dashed #D1D5DB;border-radius:.75rem;overflow:hidden;margin-top:1rem;background-size:100% 100%;background-position:center;background-repeat:no-repeat}#overlay,canvas{position:absolute;width:100%;height:100%}#status{min-height:16px;margin:8px 0}.bounding-box{position:absolute;box-sizing:border-box;border:solid 2px}.bounding-box-label{color:#fff;position:absolute;font-size:12px;margin:-16px 0 0 -2px;padding:1px}#video,#canvas{display:none}
|
assets/index-siDr-iE1.js
ADDED
The diff for this file is too large to render.
See raw diff
|
|
index.html
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
<meta charset="UTF-8" />
|
6 |
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
7 |
<title>Transformers.js | Real-time background removal</title>
|
8 |
-
<script type="module" crossorigin src="/assets/index-
|
9 |
<link rel="stylesheet" crossorigin href="/assets/index-CX2MTg_Z.css">
|
10 |
</head>
|
11 |
|
@@ -24,7 +24,13 @@
|
|
24 |
<canvas id="output-canvas" width="360" height="240"></canvas>
|
25 |
</div>
|
26 |
<div id="controls">
|
27 |
-
<div>
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
<label>Image size</label>
|
29 |
(<label id="size-value">256</label>)
|
30 |
<br>
|
|
|
5 |
<meta charset="UTF-8" />
|
6 |
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
7 |
<title>Transformers.js | Real-time background removal</title>
|
8 |
+
<script type="module" crossorigin src="/assets/index-siDr-iE1.js"></script>
|
9 |
<link rel="stylesheet" crossorigin href="/assets/index-CX2MTg_Z.css">
|
10 |
</head>
|
11 |
|
|
|
24 |
<canvas id="output-canvas" width="360" height="240"></canvas>
|
25 |
</div>
|
26 |
<div id="controls">
|
27 |
+
<div title="Read frames from your webcam and process them at a lower size (lower = faster)">
|
28 |
+
<label>Stream scale</label>
|
29 |
+
(<label id="scale-value">0.5</label>)
|
30 |
+
<br>
|
31 |
+
<input id="scale" type="range" min="0.1" max="1" step="0.1" value="0.5" disabled>
|
32 |
+
</div>
|
33 |
+
<div title="The length of the shortest edge of the image (lower = faster)">
|
34 |
<label>Image size</label>
|
35 |
(<label id="size-value">256</label>)
|
36 |
<br>
|