You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
set camera [dict get [lindex [Statements::findMatches \
388
+
[list /someone/ claims camera /camera/ has width /cameraWidth/ height /cameraHeight/]] 0] camera]
389
+
387
390
upvar ^html ^html
388
391
html [csubst {
389
392
<html>
@@ -464,15 +467,15 @@ Wish the web server handles route "/calibrate$" with handler [list apply {{UNIT_
464
467
});
465
468
</script>
466
469
467
-
<p>Once you start calibration, you'll see some AprilTags get automatically projected on your table. Move your board to the projected tags <strong>so that at least one projected tag sits inside the gap between printed AprilTags</strong>, wait a second for the projected tags to refit into the grid,
470
+
<p>Once you start calibration, you'll see some AprilTags get automatically projected on your table. Move your board to the projected tags <em>so that at least one projected tag sits inside the gap between printed AprilTags</em>, wait a second for the projected tags to refit into the grid,
468
471
then <strong>hold the board still for a few seconds until
<p style="font-style: italic; width: 100%; text-align: center;">Example video of Andrés calibration the Folk0 system (playing at 2x speed).</p>
476
+
<p style="font-style: italic; width: 100%; text-align: center;">Example video of Andrés calibrating the folk0 system (2x speed)</p>
474
477
475
-
<p>Are the projected tags too big to fit in the gaps between printed tags? Adjust this slider to reset & adjust the default projected tag size:
478
+
<p><strong>Are the projected tags too big to fit in the gaps between printed tags?</strong> Adjust this slider to reset & adjust the default projected tag size:
@@ -482,11 +485,69 @@ Wish the web server handles route "/calibrate$" with handler [list apply {{UNIT_
482
485
{*}\$::HoldDefaultModel \${scale}
483
486
`);
484
487
});
488
+
489
+
function advanceCamera() {
490
+
cameraFrame.src = cameraFrame.src + '0'
491
+
}
492
+
</script>
493
+
494
+
<p>Use this camera preview to debug why printed and/or projected tags aren't being recognized (maybe overexposure, maybe your camera isn't in a good position): <button id="refreshButton" onclick="advanceCamera()">Refresh Preview</button> <input type="checkbox" value="true" id="auto-refresh-checkbox" checked>
495
+
<label for="auto-refresh-checkbox">Automatically refresh preview (May not work well during calibration)</label> </p><br> <img src="/camera-frame?0" id="cameraFrame" style="max-width: 100%">
<p>Use this camera preview to debug why printed and/or projected tags aren't being recognized (maybe overexposure, maybe your camera isn't in a good position): <button onclick="cameraFrame.src = cameraFrame.src + '0'">Refresh Preview</button></p><br> <img src="/camera-frame?0" id="cameraFrame" style="max-width: 100%">
488
508
489
-
<p>Once you've recorded the first pose, <strong>slowly drag the board around your space</strong>, going slow enough for the projected AprilTags to catch up with the printed AprilTags and fit into the gaps on your board. When you've moved the board at least a full board-length away from the first pose, try to slant it 45 degrees or so off the table and hold it still again to capture another pose.</p>
509
+
<p><strong>Is the projection too bright and washing out the camera?</strong>
<p>Once you've recorded the first pose, <em>slowly drag the board around your space</em>, going slow enough for the projected AprilTags to catch up with the printed AprilTags and fit into the gaps on your board. When you've moved the board at least a full board-length away from the first pose, try to slant it 45 degrees or so off the table and hold it still again to capture another pose.</p>
490
551
491
552
<p>Repeat this process of dragging the board around and
492
553
capturing a new pose. You'll need to record 10 different
@@ -498,7 +559,7 @@ Wish the web server handles route "/calibrate$" with handler [list apply {{UNIT_
498
559
<details>
499
560
<summary>Troubleshooting</summary>
500
561
<p>Look at ~/folk-calibration-poses to see images of the captured poses (maybe tags are distorted or washed out?).</p>
501
-
<p>You can try manually adjusting webcam settings if your poses are bad. (They should be immediately reflected in the camera preview once you refresh.) Folk tries to turn off autofocus by default, but you might also want to turn off autoexposure and set a manual exposure time. For example:</p>
562
+
<p>You can try manually adjusting webcam settings if your poses are bad. (They should be immediately reflected in the camera preview once you refresh.) Folk tries to turn off autofocus by default, and you might also want to check that your camera actually has an exposure setting and focus setting. For example:</p>
0 commit comments