File size: 4,575 Bytes
4eecd03
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
  <meta name="theme-color" content="#0b0b0f">
  <title>Painting Vision Demo</title>
  <link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect width='16' height='16' rx='4' fill='%231fe0c2'/%3E%3C/svg%3E">
  <link rel="stylesheet" href="/demo.css">
  <script src="/demo.js" defer></script>
  <script src="/demo_video.js" defer></script>
</head>
<body>
  <main class="app" data-phase="start">
    <header class="bar">
      <span class="mark" aria-hidden="true"></span><strong>Painting Vision</strong>
      <span class="phase" id="phase" role="status" aria-live="polite"></span>
    </header>

    <section class="start" id="start">
      <h1>Point at a wall.<br><em>Watch it get masked, then painted.</em></h1>
      <p class="sub">Take a photo. The model finds the wall, the windows and the fittings, plans every strip of tape and every roller pass, and shows you the job before a machine moves.</p>
      <label class="cta">
        <input id="file" type="file" accept="image/*" capture="environment">
        <span>Take a photo</span>
      </label>
      <label class="alt">or <u>choose one</u><input id="file2" type="file" accept="image/*"></label>
      <label class="cta ghost-cta">
        <input id="vfile" type="file" accept="video/*" capture="environment">
        <span>Film the wall instead</span>
      </label>
      <p class="fine">Video: the wall is analysed every ~2 s and the plan follows the nearest analysed frame (about 6 s of computing per frame).</p>
      <p class="fine">Software demo: the plan is real, the machine is simulated. Scale is assumed unless the photo is measured.</p>
    </section>

    <section class="stage-wrap" id="stage-wrap" hidden>
      <div class="stage" id="stage"><canvas id="canvas"></canvas><div id="scan" class="scan" hidden></div></div>
      <div class="hud">
        <div class="stat"><b id="s-tape">0.0</b><span>m of tape</span></div>
        <div class="stat"><b id="s-film">0.0</b><span>m² film</span></div>
        <div class="stat"><b id="s-paint">0%</b><span>painted</span></div>
      </div>
      <div class="seg" id="toolsel" role="group" aria-label="Tool"><button id="t-roller" type="button" aria-pressed="true">Roller</button><button id="t-spray" type="button" aria-pressed="false">Spray</button></div>
      <div class="transport" role="group" aria-label="Playback">
        <button id="play" class="pill" type="button">Pause</button>
        <input id="scrub" type="range" min="0" max="1000" value="0" aria-label="Timeline">
        <select id="speed" aria-label="Speed"><option value="0.5">0.5×</option><option value="1" selected>1×</option><option value="2">2×</option><option value="4">4×</option></select>
      </div>
      <div class="meta"><span id="clock"></span></div>
      <div class="zwrap"><canvas id="zpanel" aria-label="Tool depth over time, side view"></canvas></div>
      <div class="readout" id="readout" aria-live="off"></div>
      <div class="caption" id="caption"></div>
      <div class="legend" id="legend" aria-label="Detected regions"></div>
      <div class="toggles"><button id="path" class="chip" type="button" aria-pressed="false">Show path</button>
        <button id="tilt" class="chip" type="button" aria-pressed="false">3D view</button>
        <button id="compare" class="chip" type="button" aria-pressed="false" hidden>Before / after</button></div>
      <div class="swatches" id="swatches" aria-label="Paint colour"></div>
      <div class="row">
        <button id="replay" class="ghost">Replay</button>
        <button id="record" class="ghost">Record clip</button>
        <label class="ghost btn">New photo<input id="file3" type="file" accept="image/*" capture="environment"></label>
      </div>
      <div class="result" id="result" hidden></div>
    </section>
    <section class="stage-wrap" id="video-wrap" hidden>
      <div class="stage"><video id="vid" playsinline muted loop controls></video><canvas id="vcanvas" class="vover"></canvas></div>
      <div class="caption" id="vcaption"></div>
      <div class="legend" id="vchips"></div>
      <div class="row"><label class="ghost btn">Another video<input id="vfile2" type="file" accept="video/*" capture="environment"></label>
        <button id="vback" class="ghost">Back</button></div>
    </section>
    <div class="err" id="err" role="alert" hidden></div>
  </main>
</body>
</html>