Reprojection Error

The calibration's reprojection error: one bar per rig target against the 0.5 px limit, and every corner's residual in a scatter around zero.

STATIONCLI/PROCEDUREReprojection Error

Check calibration

PASS00:15.93Check calibration (1/1)Passed

Run It

Every instrument is mocked, so the example runs without hardware.

bash
git clone https://github.com/tofupilot/panelscd panelstofupilot run reprojection-error

The procedure

procedure.yaml
name: Reprojection Errorversion: 1.0.0plugs:  - key: calibration_results    name: Calibration results    python: plugs.calibration_results:CalibrationResultsmain:  - key: check    name: Check calibration    python: phases.reprojection_error:check_calibration    measurements:      - key: reprojection_rms        name: Reprojection error, RMS        unit: "px"        validators:          - operator: "<="            expected_value: 0.5      - key: worst_target_rms        name: Worst target's RMS        unit: "px"        validators:          - operator: "<="            expected_value: 0.5    ui:      panel: panels/error.html

The panel

panels/error.html
<div class="inst"><svg viewBox="0 0 640 400" role="img"><rect x="1" y="1" width="638" height="398" rx="10" fill="#05070a" stroke="#20262c" stroke-width="1.5"/><path d="M52 360.0H300" stroke="#2a3138"/><text x="42" y="364.0" text-anchor="end" style="font: 500 12px ui-monospace, Menlo, monospace; letter-spacing: 0; fill: #7d8791">0.0</text><path d="M52 200.0H300" stroke="#2a3138"/><text x="42" y="204.0" text-anchor="end" style="font: 500 12px ui-monospace, Menlo, monospace; letter-spacing: 0; fill: #7d8791">0.5</text><path d="M52 40.0H300" stroke="#2a3138"/><text x="42" y="44.0" text-anchor="end" style="font: 500 12px ui-monospace, Menlo, monospace; letter-spacing: 0; fill: #7d8791">1.0</text><path d="M52 200.0H300" stroke="#f2c230" stroke-dasharray="6 5" stroke-width="1.5"/><g class="bar" data-bind="ui.e1"><rect x="74" y="40" width="40" height="320" rx="4" fill="#4aa8ff"/></g><g class="bar" data-bind="ui.e2"><rect x="132" y="40" width="40" height="320" rx="4" fill="#38e07a"/></g><g class="bar" data-bind="ui.e3"><rect x="190" y="40" width="40" height="320" rx="4" fill="#f2c230"/></g><g class="bar" data-bind="ui.e4"><rect x="248" y="40" width="40" height="320" rx="4" fill="#e879f9"/></g><circle cx="478" cy="200" r="150" fill="none" stroke="#2a3138"/><path d="M328 200H628M478 50V350" stroke="#2a3138"/><circle cx="478" cy="200" r="75.0" fill="none" stroke="#f2c230" stroke-dasharray="6 5" stroke-width="1.5"/><g data-bind="ui.shown"><circle class="rv" style="--k: 0" cx="494.7" cy="204.6" r="2.6" fill="#4aa8ff"/><circle class="rv" style="--k: 0" cx="442.2" cy="189.2" r="2.6" fill="#4aa8ff"/><circle class="rv" style="--k: 0" cx="508.3" cy="203.5" r="2.6" fill="#4aa8ff"/><circle class="rv" style="--k: 0" cx="394.9" cy="189.1" r="2.6" fill="#4aa8ff"/><circle class="rv" style="--k: 0" cx="436.3" cy="236.1" r="2.6" fill="#4aa8ff"/><circle class="rv" style="--k: 0" cx="490.9" cy="201.3" r="2.6" fill="#4aa8ff"/><circle class="rv" style="--k: 0" cx="464.4" cy="208.1" r="2.6" fill="#4aa8ff"/><circle class="rv" style="--k: 0" cx="510.4" cy="238.9" r="2.6" fill="#4aa8ff"/><circle class="rv" style="--k: 0" cx="472.3" cy="203.3" r="2.6" fill="#4aa8ff"/><circle class="rv" style="--k: 0" cx="416.3" cy="175.5" r="2.6" fill="#4aa8ff"/><circle class="rv" style="--k: 0" cx="496.5" cy="192.7" r="2.6" fill="#4aa8ff"/><circle class="rv" style="--k: 0" cx="480.1" cy="167.6" r="2.6" fill="#4aa8ff"/><circle class="rv" style="--k: 0" cx="475.4" cy="189.7" r="2.6" fill="#4aa8ff"/><circle class="rv" style="--k: 0" cx="490.0" cy="214.4" r="2.6" fill="#4aa8ff"/><circle class="rv" style="--k: 0" cx="493.0" cy="203.3" r="2.6" fill="#4aa8ff"/><circle class="rv" style="--k: 0" cx="468.8" cy="170.0" r="2.6" fill="#4aa8ff"/><circle class="rv" style="--k: 0" cx="500.2" cy="184.8" r="2.6" fill="#4aa8ff"/><circle class="rv" style="--k: 0" cx="453.5" cy="167.0" r="2.6" fill="#4aa8ff"/><circle class="rv" style="--k: 0" cx="477.4" cy="234.0" r="2.6" fill="#4aa8ff"/><circle class="rv" style="--k: 0" cx="469.0" cy="239.3" r="2.6" fill="#4aa8ff"/><circle class="rv" style="--k: 0" cx="507.5" cy="176.2" r="2.6" fill="#4aa8ff"/><circle class="rv" style="--k: 0" cx="479.3" cy="200.3" r="2.6" fill="#4aa8ff"/><circle class="rv" style="--k: 0" cx="547.9" cy="190.8" r="2.6" fill="#4aa8ff"/><circle class="rv" style="--k: 0" cx="514.6" cy="213.4" r="2.6" fill="#4aa8ff"/><circle class="rv" style="--k: 0" cx="500.4" cy="206.6" r="2.6" fill="#4aa8ff"/><circle class="rv" style="--k: 0" cx="465.8" cy="185.4" r="2.6" fill="#4aa8ff"/><circle class="rv" style="--k: 0" cx="481.8" cy="203.9" r="2.6" fill="#4aa8ff"/><circle class="rv" style="--k: 0" cx="485.0" cy="214.4" r="2.6" fill="#4aa8ff"/><circle class="rv" style="--k: 0" cx="506.2" cy="197.6" r="2.6" fill="#4aa8ff"/><circle class="rv" style="--k: 0" cx="463.0" cy="215.2" r="2.6" fill="#4aa8ff"/><circle class="rv" style="--k: 0" cx="559.3" cy="135.1" r="2.6" fill="#4aa8ff"/><circle class="rv" style="--k: 0" cx="478.6" cy="177.8" r="2.6" fill="#4aa8ff"/><circle class="rv" style="--k: 0" cx="481.9" cy="185.4" r="2.6" fill="#4aa8ff"/><circle class="rv" style="--k: 0" cx="430.1" cy="212.2" r="2.6" fill="#4aa8ff"/><circle class="rv" style="--k: 0" cx="474.7" cy="214.1" r="2.6" fill="#4aa8ff"/><circle class="rv" style="--k: 0" cx="506.3" cy="184.5" r="2.6" fill="#4aa8ff"/><circle class="rv" style="--k: 0" cx="496.1" cy="211.4" r="2.6" fill="#4aa8ff"/><circle class="rv" style="--k: 0" cx="457.6" cy="214.1" r="2.6" fill="#4aa8ff"/><circle class="rv" style="--k: 0" cx="501.6" cy="217.7" r="2.6" fill="#4aa8ff"/><circle class="rv" style="--k: 0" cx="423.8" cy="193.5" r="2.6" fill="#4aa8ff"/><circle class="rv" style="--k: 0" cx="465.0" cy="204.9" r="2.6" fill="#4aa8ff"/><circle class="rv" style="--k: 0" cx="466.3" cy="206.6" r="2.6" fill="#4aa8ff"/><circle class="rv" style="--k: 0" cx="511.7" cy="193.2" r="2.6" fill="#4aa8ff"/><circle class="rv" style="--k: 0" cx="439.6" cy="228.8" r="2.6" fill="#4aa8ff"/><circle class="rv" style="--k: 0" cx="465.6" cy="248.7" r="2.6" fill="#4aa8ff"/><circle class="rv" style="--k: 0" cx="467.5" cy="198.4" r="2.6" fill="#4aa8ff"/><circle class="rv" style="--k: 0" cx="504.6" cy="200.2" r="2.6" fill="#4aa8ff"/><circle class="rv" style="--k: 0" cx="465.1" cy="181.7" r="2.6" fill="#4aa8ff"/><circle class="rv" style="--k: 0" cx="526.0" cy="217.5" r="2.6" fill="#4aa8ff"/><circle class="rv" style="--k: 0" cx="392.5" cy="185.0" r="2.6" fill="#4aa8ff"/><circle class="rv" style="--k: 0" cx="516.1" cy="183.1" r="2.6" fill="#4aa8ff"/><circle class="rv" style="--k: 0" cx="417.9" cy="179.6" r="2.6" fill="#4aa8ff"/><circle class="rv" style="--k: 0" cx="512.7" cy="200.6" r="2.6" fill="#4aa8ff"/><circle class="rv" style="--k: 0" cx="465.1" cy="210.7" r="2.6" fill="#4aa8ff"/><circle class="rv" style="--k: 1" cx="514.8" cy="232.8" r="2.6" fill="#38e07a"/><circle class="rv" style="--k: 1" cx="452.2" cy="197.4" r="2.6" fill="#38e07a"/><circle class="rv" style="--k: 1" cx="497.3" cy="205.7" r="2.6" fill="#38e07a"/><circle class="rv" style="--k: 1" cx="436.0" cy="153.5" r="2.6" fill="#38e07a"/><circle class="rv" style="--k: 1" cx="476.7" cy="199.3" r="2.6" fill="#38e07a"/><circle class="rv" style="--k: 1" cx="517.7" cy="218.6" r="2.6" fill="#38e07a"/><circle class="rv" style="--k: 1" cx="445.6" cy="267.4" r="2.6" fill="#38e07a"/><circle class="rv" style="--k: 1" cx="493.3" cy="211.9" r="2.6" fill="#38e07a"/><circle class="rv" style="--k: 1" cx="501.7" cy="208.4" r="2.6" fill="#38e07a"/><circle class="rv" style="--k: 1" cx="481.3" cy="189.5" r="2.6" fill="#38e07a"/><circle class="rv" style="--k: 1" cx="488.3" cy="201.2" r="2.6" fill="#38e07a"/><circle class="rv" style="--k: 1" cx="473.5" cy="190.3" r="2.6" fill="#38e07a"/><circle class="rv" style="--k: 1" cx="500.6" cy="209.9" r="2.6" fill="#38e07a"/><circle class="rv" style="--k: 1" cx="475.4" cy="195.9" r="2.6" fill="#38e07a"/><circle class="rv" style="--k: 1" cx="488.9" cy="180.5" r="2.6" fill="#38e07a"/><circle class="rv" style="--k: 1" cx="496.5" cy="165.1" r="2.6" fill="#38e07a"/><circle class="rv" style="--k: 1" cx="479.6" cy="158.7" r="2.6" fill="#38e07a"/><circle class="rv" style="--k: 1" cx="472.0" cy="186.6" r="2.6" fill="#38e07a"/><circle class="rv" style="--k: 1" cx="423.7" cy="224.8" r="2.6" fill="#38e07a"/><circle class="rv" style="--k: 1" cx="476.7" cy="187.7" r="2.6" fill="#38e07a"/><circle class="rv" style="--k: 1" cx="492.8" cy="183.3" r="2.6" fill="#38e07a"/><circle class="rv" style="--k: 1" cx="473.8" cy="173.6" r="2.6" fill="#38e07a"/><circle class="rv" style="--k: 1" cx="451.8" cy="204.2" r="2.6" fill="#38e07a"/><circle class="rv" style="--k: 1" cx="497.1" cy="161.6" r="2.6" fill="#38e07a"/><circle class="rv" style="--k: 1" cx="460.0" cy="251.7" r="2.6" fill="#38e07a"/><circle class="rv" style="--k: 1" cx="512.0" cy="212.2" r="2.6" fill="#38e07a"/><circle class="rv" style="--k: 1" cx="466.0" cy="201.8" r="2.6" fill="#38e07a"/><circle class="rv" style="--k: 1" cx="446.6" cy="176.6" r="2.6" fill="#38e07a"/><circle class="rv" style="--k: 1" cx="482.3" cy="189.9" r="2.6" fill="#38e07a"/><circle class="rv" style="--k: 1" cx="465.6" cy="160.7" r="2.6" fill="#38e07a"/><circle class="rv" style="--k: 1" cx="460.7" cy="209.9" r="2.6" fill="#38e07a"/><circle class="rv" style="--k: 1" cx="488.1" cy="228.3" r="2.6" fill="#38e07a"/><circle class="rv" style="--k: 1" cx="437.5" cy="239.6" r="2.6" fill="#38e07a"/><circle class="rv" style="--k: 1" cx="471.1" cy="197.3" r="2.6" fill="#38e07a"/><circle class="rv" style="--k: 1" cx="507.4" cy="169.4" r="2.6" fill="#38e07a"/><circle class="rv" style="--k: 1" cx="427.3" cy="168.1" r="2.6" fill="#38e07a"/><circle class="rv" style="--k: 1" cx="476.7" cy="232.3" r="2.6" fill="#38e07a"/><circle class="rv" style="--k: 1" cx="491.2" cy="227.8" r="2.6" fill="#38e07a"/><circle class="rv" style="--k: 1" cx="453.1" cy="194.4" r="2.6" fill="#38e07a"/><circle class="rv" style="--k: 1" cx="523.3" cy="209.3" r="2.6" fill="#38e07a"/><circle class="rv" style="--k: 1" cx="488.1" cy="206.0" r="2.6" fill="#38e07a"/><circle class="rv" style="--k: 1" cx="505.4" cy="202.2" r="2.6" fill="#38e07a"/><circle class="rv" style="--k: 1" cx="421.1" cy="229.9" r="2.6" fill="#38e07a"/><circle class="rv" style="--k: 1" cx="480.8" cy="206.3" r="2.6" fill="#38e07a"/><circle class="rv" style="--k: 1" cx="494.7" cy="201.2" r="2.6" fill="#38e07a"/><circle class="rv" style="--k: 1" cx="490.8" cy="189.7" r="2.6" fill="#38e07a"/><circle class="rv" style="--k: 1" cx="494.7" cy="176.4" r="2.6" fill="#38e07a"/><circle class="rv" style="--k: 1" cx="470.5" cy="207.2" r="2.6" fill="#38e07a"/><circle class="rv" style="--k: 1" cx="496.1" cy="214.6" r="2.6" fill="#38e07a"/><circle class="rv" style="--k: 1" cx="485.6" cy="185.3" r="2.6" fill="#38e07a"/><circle class="rv" style="--k: 1" cx="495.7" cy="196.1" r="2.6" fill="#38e07a"/><circle class="rv" style="--k: 1" cx="513.7" cy="207.0" r="2.6" fill="#38e07a"/><circle class="rv" style="--k: 1" cx="438.5" cy="242.9" r="2.6" fill="#38e07a"/><circle class="rv" style="--k: 1" cx="460.7" cy="158.0" r="2.6" fill="#38e07a"/><circle class="rv" style="--k: 2" cx="438.3" cy="194.9" r="2.6" fill="#f2c230"/><circle class="rv" style="--k: 2" cx="460.6" cy="191.4" r="2.6" fill="#f2c230"/><circle class="rv" style="--k: 2" cx="424.9" cy="210.2" r="2.6" fill="#f2c230"/><circle class="rv" style="--k: 2" cx="503.8" cy="233.3" r="2.6" fill="#f2c230"/><circle class="rv" style="--k: 2" cx="486.9" cy="204.3" r="2.6" fill="#f2c230"/><circle class="rv" style="--k: 2" cx="444.0" cy="195.5" r="2.6" fill="#f2c230"/><circle class="rv" style="--k: 2" cx="498.0" cy="175.0" r="2.6" fill="#f2c230"/><circle class="rv" style="--k: 2" cx="479.8" cy="218.0" r="2.6" fill="#f2c230"/><circle class="rv" style="--k: 2" cx="488.3" cy="161.8" r="2.6" fill="#f2c230"/><circle class="rv" style="--k: 2" cx="484.6" cy="176.2" r="2.6" fill="#f2c230"/><circle class="rv" style="--k: 2" cx="487.2" cy="159.7" r="2.6" fill="#f2c230"/><circle class="rv" style="--k: 2" cx="473.2" cy="196.2" r="2.6" fill="#f2c230"/><circle class="rv" style="--k: 2" cx="463.9" cy="232.8" r="2.6" fill="#f2c230"/><circle class="rv" style="--k: 2" cx="504.2" cy="194.7" r="2.6" fill="#f2c230"/><circle class="rv" style="--k: 2" cx="473.7" cy="183.5" r="2.6" fill="#f2c230"/><circle class="rv" style="--k: 2" cx="442.9" cy="198.7" r="2.6" fill="#f2c230"/><circle class="rv" style="--k: 2" cx="493.9" cy="166.3" r="2.6" fill="#f2c230"/><circle class="rv" style="--k: 2" cx="497.6" cy="224.9" r="2.6" fill="#f2c230"/><circle class="rv" style="--k: 2" cx="488.7" cy="160.0" r="2.6" fill="#f2c230"/><circle class="rv" style="--k: 2" cx="506.6" cy="224.3" r="2.6" fill="#f2c230"/><circle class="rv" style="--k: 2" cx="467.5" cy="248.2" r="2.6" fill="#f2c230"/><circle class="rv" style="--k: 2" cx="513.8" cy="222.0" r="2.6" fill="#f2c230"/><circle class="rv" style="--k: 2" cx="481.0" cy="185.8" r="2.6" fill="#f2c230"/><circle class="rv" style="--k: 2" cx="484.5" cy="195.2" r="2.6" fill="#f2c230"/><circle class="rv" style="--k: 2" cx="456.1" cy="233.5" r="2.6" fill="#f2c230"/><circle class="rv" style="--k: 2" cx="506.2" cy="207.8" r="2.6" fill="#f2c230"/><circle class="rv" style="--k: 2" cx="489.7" cy="183.1" r="2.6" fill="#f2c230"/><circle class="rv" style="--k: 2" cx="474.1" cy="215.2" r="2.6" fill="#f2c230"/><circle class="rv" style="--k: 2" cx="482.1" cy="197.2" r="2.6" fill="#f2c230"/><circle class="rv" style="--k: 2" cx="502.5" cy="195.8" r="2.6" fill="#f2c230"/><circle class="rv" style="--k: 2" cx="485.2" cy="184.8" r="2.6" fill="#f2c230"/><circle class="rv" style="--k: 2" cx="470.5" cy="195.2" r="2.6" fill="#f2c230"/><circle class="rv" style="--k: 2" cx="494.1" cy="209.3" r="2.6" fill="#f2c230"/><circle class="rv" style="--k: 2" cx="491.4" cy="225.9" r="2.6" fill="#f2c230"/><circle class="rv" style="--k: 2" cx="473.1" cy="204.2" r="2.6" fill="#f2c230"/><circle class="rv" style="--k: 2" cx="450.6" cy="177.5" r="2.6" fill="#f2c230"/><circle class="rv" style="--k: 2" cx="477.4" cy="199.4" r="2.6" fill="#f2c230"/><circle class="rv" style="--k: 2" cx="454.7" cy="202.1" r="2.6" fill="#f2c230"/><circle class="rv" style="--k: 2" cx="469.3" cy="236.1" r="2.6" fill="#f2c230"/><circle class="rv" style="--k: 2" cx="469.6" cy="209.9" r="2.6" fill="#f2c230"/><circle class="rv" style="--k: 2" cx="442.6" cy="237.6" r="2.6" fill="#f2c230"/><circle class="rv" style="--k: 2" cx="428.0" cy="196.4" r="2.6" fill="#f2c230"/><circle class="rv" style="--k: 2" cx="436.4" cy="283.4" r="2.6" fill="#f2c230"/><circle class="rv" style="--k: 2" cx="478.5" cy="213.2" r="2.6" fill="#f2c230"/><circle class="rv" style="--k: 2" cx="494.1" cy="169.8" r="2.6" fill="#f2c230"/><circle class="rv" style="--k: 2" cx="490.8" cy="173.8" r="2.6" fill="#f2c230"/><circle class="rv" style="--k: 2" cx="495.1" cy="151.7" r="2.6" fill="#f2c230"/><circle class="rv" style="--k: 2" cx="505.8" cy="179.0" r="2.6" fill="#f2c230"/><circle class="rv" style="--k: 2" cx="515.0" cy="187.1" r="2.6" fill="#f2c230"/><circle class="rv" style="--k: 2" cx="466.0" cy="201.3" r="2.6" fill="#f2c230"/><circle class="rv" style="--k: 2" cx="480.4" cy="234.2" r="2.6" fill="#f2c230"/><circle class="rv" style="--k: 2" cx="496.8" cy="176.7" r="2.6" fill="#f2c230"/><circle class="rv" style="--k: 2" cx="477.3" cy="174.1" r="2.6" fill="#f2c230"/><circle class="rv" style="--k: 2" cx="470.7" cy="193.4" r="2.6" fill="#f2c230"/><circle class="rv" style="--k: 3" cx="456.8" cy="240.6" r="2.6" fill="#e879f9"/><circle class="rv" style="--k: 3" cx="480.2" cy="179.6" r="2.6" fill="#e879f9"/><circle class="rv" style="--k: 3" cx="510.7" cy="178.1" r="2.6" fill="#e879f9"/><circle class="rv" style="--k: 3" cx="451.9" cy="186.8" r="2.6" fill="#e879f9"/><circle class="rv" style="--k: 3" cx="495.3" cy="192.8" r="2.6" fill="#e879f9"/><circle class="rv" style="--k: 3" cx="456.3" cy="217.7" r="2.6" fill="#e879f9"/><circle class="rv" style="--k: 3" cx="398.1" cy="238.1" r="2.6" fill="#e879f9"/><circle class="rv" style="--k: 3" cx="447.7" cy="168.5" r="2.6" fill="#e879f9"/><circle class="rv" style="--k: 3" cx="478.0" cy="215.0" r="2.6" fill="#e879f9"/><circle class="rv" style="--k: 3" cx="478.9" cy="232.4" r="2.6" fill="#e879f9"/><circle class="rv" style="--k: 3" cx="557.2" cy="181.9" r="2.6" fill="#e879f9"/><circle class="rv" style="--k: 3" cx="446.6" cy="206.9" r="2.6" fill="#e879f9"/><circle class="rv" style="--k: 3" cx="497.8" cy="215.7" r="2.6" fill="#e879f9"/><circle class="rv" style="--k: 3" cx="473.2" cy="191.0" r="2.6" fill="#e879f9"/><circle class="rv" style="--k: 3" cx="496.5" cy="193.5" r="2.6" fill="#e879f9"/><circle class="rv" style="--k: 3" cx="482.9" cy="199.3" r="2.6" fill="#e879f9"/><circle class="rv" style="--k: 3" cx="518.8" cy="201.1" r="2.6" fill="#e879f9"/><circle class="rv" style="--k: 3" cx="469.1" cy="174.3" r="2.6" fill="#e879f9"/><circle class="rv" style="--k: 3" cx="489.1" cy="183.9" r="2.6" fill="#e879f9"/><circle class="rv" style="--k: 3" cx="490.9" cy="249.8" r="2.6" fill="#e879f9"/><circle class="rv" style="--k: 3" cx="442.4" cy="225.9" r="2.6" fill="#e879f9"/><circle class="rv" style="--k: 3" cx="436.3" cy="147.1" r="2.6" fill="#e879f9"/><circle class="rv" style="--k: 3" cx="484.2" cy="208.4" r="2.6" fill="#e879f9"/><circle class="rv" style="--k: 3" cx="482.5" cy="198.9" r="2.6" fill="#e879f9"/><circle class="rv" style="--k: 3" cx="505.1" cy="181.7" r="2.6" fill="#e879f9"/><circle class="rv" style="--k: 3" cx="480.0" cy="213.0" r="2.6" fill="#e879f9"/><circle class="rv" style="--k: 3" cx="461.1" cy="224.6" r="2.6" fill="#e879f9"/><circle class="rv" style="--k: 3" cx="468.4" cy="125.9" r="2.6" fill="#e879f9"/><circle class="rv" style="--k: 3" cx="495.1" cy="183.7" r="2.6" fill="#e879f9"/><circle class="rv" style="--k: 3" cx="469.8" cy="194.6" r="2.6" fill="#e879f9"/><circle class="rv" style="--k: 3" cx="468.7" cy="246.5" r="2.6" fill="#e879f9"/><circle class="rv" style="--k: 3" cx="481.1" cy="166.4" r="2.6" fill="#e879f9"/><circle class="rv" style="--k: 3" cx="471.4" cy="220.8" r="2.6" fill="#e879f9"/><circle class="rv" style="--k: 3" cx="513.8" cy="239.3" r="2.6" fill="#e879f9"/><circle class="rv" style="--k: 3" cx="501.7" cy="221.9" r="2.6" fill="#e879f9"/><circle class="rv" style="--k: 3" cx="496.1" cy="180.2" r="2.6" fill="#e879f9"/><circle class="rv" style="--k: 3" cx="510.8" cy="155.0" r="2.6" fill="#e879f9"/><circle class="rv" style="--k: 3" cx="482.2" cy="194.6" r="2.6" fill="#e879f9"/><circle class="rv" style="--k: 3" cx="434.9" cy="228.3" r="2.6" fill="#e879f9"/><circle class="rv" style="--k: 3" cx="447.3" cy="200.5" r="2.6" fill="#e879f9"/><circle class="rv" style="--k: 3" cx="485.3" cy="193.7" r="2.6" fill="#e879f9"/><circle class="rv" style="--k: 3" cx="482.9" cy="196.7" r="2.6" fill="#e879f9"/><circle class="rv" style="--k: 3" cx="491.4" cy="203.0" r="2.6" fill="#e879f9"/><circle class="rv" style="--k: 3" cx="463.2" cy="194.6" r="2.6" fill="#e879f9"/><circle class="rv" style="--k: 3" cx="510.7" cy="195.2" r="2.6" fill="#e879f9"/><circle class="rv" style="--k: 3" cx="495.1" cy="241.3" r="2.6" fill="#e879f9"/><circle class="rv" style="--k: 3" cx="466.5" cy="195.5" r="2.6" fill="#e879f9"/><circle class="rv" style="--k: 3" cx="478.9" cy="181.9" r="2.6" fill="#e879f9"/><circle class="rv" style="--k: 3" cx="447.1" cy="222.8" r="2.6" fill="#e879f9"/><circle class="rv" style="--k: 3" cx="468.4" cy="173.1" r="2.6" fill="#e879f9"/><circle class="rv" style="--k: 3" cx="467.7" cy="211.9" r="2.6" fill="#e879f9"/><circle class="rv" style="--k: 3" cx="455.1" cy="194.1" r="2.6" fill="#e879f9"/><circle class="rv" style="--k: 3" cx="518.8" cy="220.1" r="2.6" fill="#e879f9"/><circle class="rv" style="--k: 3" cx="470.7" cy="170.8" r="2.6" fill="#e879f9"/></g></svg></div><style>  .inst { width: min(560px, 100%); margin: 0 auto; }  .inst svg { display: block; width: 100%; height: auto; }  .inst text { font-family: system-ui, sans-serif; }  .dp rect { fill: var(--off); }  .dp.on rect, .dp[data-value=true] rect { fill: var(--on); }  .led circle { fill: #2a2f35; transition: fill .15s; }  .led[data-value=true] circle { fill: var(--led, #38e07a); }  .ann text { fill: var(--off); transition: fill .15s; }  .ann[data-value=true] text { fill: var(--on); }  .d7 rect { fill: var(--off); transition: fill .08s; }  .d7[data-value="0"] :is(.sa, .sb, .sc, .sd, .se, .sf) { fill: var(--on); }  .d7[data-value="1"] :is(.sb, .sc) { fill: var(--on); }  .d7[data-value="2"] :is(.sa, .sb, .sd, .se, .sg) { fill: var(--on); }  .d7[data-value="3"] :is(.sa, .sb, .sc, .sd, .sg) { fill: var(--on); }  .d7[data-value="4"] :is(.sb, .sc, .sf, .sg) { fill: var(--on); }  .d7[data-value="5"] :is(.sa, .sc, .sd, .sf, .sg) { fill: var(--on); }  .d7[data-value="6"] :is(.sa, .sc, .sd, .se, .sf, .sg) { fill: var(--on); }  .d7[data-value="7"] :is(.sa, .sb, .sc) { fill: var(--on); }  .d7[data-value="8"] :is(.sa, .sb, .sc, .sd, .se, .sf, .sg) { fill: var(--on); }  .d7[data-value="9"] :is(.sa, .sb, .sc, .sd, .sf, .sg) { fill: var(--on); }  .d7[data-value="-"] :is(.sg) { fill: var(--on); }  .d7[data-value="E"] :is(.sa, .sd, .se, .sf, .sg) { fill: var(--on); }  .d7[data-value="U"] :is(.sb, .sc, .sd, .se, .sf) { fill: var(--on); }  .d7[data-value="r"] :is(.se, .sg) { fill: var(--on); }  .rv { opacity: clamp(0, calc((var(--value, -1) - var(--k)) * 4 + 1), 1); transition: opacity .15s linear; }  .photo { opacity: .92; }  .bar { transform-box: view-box; transform-origin: 0 360px; transform: scaleY(clamp(0, var(--value, 0), 1)); transition: transform .5s ease-out; }</style>

The phase

phases/reprojection_error.py
"""Reads the calibration's reprojection error back: `ui.e1` to `ui.e4` areeach target's RMS in pixels, `ui.shown` reveals the corner residuals target bytarget. The run records the overall RMS and the worst target's."""import timedef check_calibration(ui, measurements, calibration_results):    results = calibration_results.results()    for _ in range(2):        for index, rms in enumerate(results["target_rms"], 1):            setattr(ui, f"e{index}", rms)            ui.shown = index - 1            time.sleep(0.9)        time.sleep(2.5)        for index in range(1, 5):            setattr(ui, f"e{index}", 0)        ui.shown = -1        time.sleep(0.8)    for index, rms in enumerate(results["target_rms"], 1):        setattr(ui, f"e{index}", rms)    ui.shown = 3    measurements.reprojection_rms = results["rms"]    measurements.worst_target_rms = max(results["target_rms"])    time.sleep(2)

The mocked instrument

plugs/calibration_results.py
"""Mock calibration results: each rig target's reprojection error from the OpenCV calibration. Replace it with your camera and the OpenCV calls of your station."""import jsonRESULTS = json.loads("{\"target_rms\":[0.263,0.232,0.222,0.243],\"rms\":0.24}")class CalibrationResults:    def results(self):        return RESULTS

Run your first test in minutes