blambert's picture
feat: scan continuously while detecting motion
a9f58f8
Raw History Blame Contribute Delete
1.61 kB
<!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>