File size: 1,611 Bytes
6ebcdad
 
 
 
 
 
 
 
 
 
 
 
 
f9a8eeb
 
 
a9f58f8
f9a8eeb
 
 
a9f58f8
 
 
 
 
f9a8eeb
 
1593215
f9a8eeb
 
 
6b9f2e3
f9a8eeb
a9f58f8
 
 
 
6b9f2e3
bd7d739
6ebcdad
 
 
 
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
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>Movement Tracker</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="/static/style.css">
</head>

<body>
    <h1>Movement Tracker</h1>

    <h2>Sensitivity</h2>
    <p class="legend">Lower values make detection more sensitive.</p>
    <div class="slider">
        <label for="var_threshold">Change threshold (still)</label>
        <input type="range" id="var_threshold" min="4" max="64" step="1">
        <output id="var_threshold_out"></output>
    </div>
    <div class="slider">
        <label for="diff_threshold">Change threshold (scanning)</label>
        <input type="range" id="diff_threshold" min="4" max="64" step="1">
        <output id="diff_threshold_out"></output>
    </div>
    <div class="slider">
        <label for="min_blob_frac">Minimum blob size</label>
        <input type="range" id="min_blob_frac" min="0.0001" max="0.02" step="0.0001">
        <output id="min_blob_frac_out"></output>
    </div>

    <h2>Motion map</h2>
    <p class="legend">The camera view boxes the largest moving blob: green if the
        robot will turn toward it, red if it is smaller than the minimum blob size. While
        still, the raw mask is the background subtraction output; while scanning, it is
        the difference between frames after cancelling out the head's own motion. The
        cleaned mask is what picks the blob.</p>
    <div id="state"></div>
    <img id="motion" alt="Motion map">
    <script src="/static/main.js"></script>
</body>

</html>