Repository navigation
Conversation
…at asset - packlab_core.calibration.mat_photo_check: detect the four AprilTag mat markers in one photo, fit the mat-mm -> px homography to all 16 corners, report corner residual (mm), mm/px at the mat centre and the owner ruler print gate; always METRIC_UNVERIFIED / PHYSICAL_EVIDENCE_PENDING. CLI (python -m ...) also exports the versioned printable SVG. - Studio Measure & Design: "Save printable mat (A4 SVG)..." button. - Frozen build bundles assets/calibration so the mat is reachable offline. - Tests: seeded synthetic renders of the real A4/A3 SVG with known homographies (software math only, no physical claim). PL-0068 and PL-0220..PL-0224 physical gates untouched. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…us partial, counts unchanged) Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ground truth, bundle check, SVG dialog) F1 CLI exits 1 when the ruler gate is REJECTED_SCALING; F2 mm_per_px_at_mat_centre asserted against the true-homography Jacobian (rel 1e-2); F3 CLI exits 2 on PrintScaleSensitivityError; F4 failed_readings pinned; F5 per-size page corners; F6 static spec bundle assertion; F7 SVG filter and .svg suffix for the mat save dialog. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PL-0501 software calibration support
Inventory showed most of the path already existed (SVG A4/A3 mats v1.0.1,
marker_detection,reconstruction_scale+scale_provenancewith uncertainty, Studio "Scale from mat markers" with 100 mm bar print correction,check_printed_mat_spacing, PL-0068 benchmark record, PL-0221..0224 software halves). Missing pieces added here:packlab_core.calibration.mat_photo_check: one photo -> detect four markers -> mat-mm to px homography fitted to all 16 corners -> corner residual (mm), mm/px at the mat centre, ruler print gate. CLIpython -m packlab_core.calibration.mat_photo_check [PHOTO] [--export-mat PATH] [--mat a4|a3] [--spacing-x-mm/--spacing-y-mm/--marker-side-mm].packlab_studio.specbundlesassets/calibration, so an installed Studio can find the mat file.Honest limits
METRIC_UNVERIFIED/PHYSICAL_EVIDENCE_PENDING. A photo cannot see uniform or anisotropic print scaling. The homography absorbs most of a single misplaced marker: on synthetic A4 it leaves about 0.28 mm of residual per mm of shift, so only shifts above about 4 mm trip the 1 mm limit.Tests
tests/calibration/test_mat_photo_check.py: 7 passedtests/studio/test_measure_design.py: new save-mat test passedtests/calibration,tests/core/test_print_scale_sensitivity.py,tests/core/test_physical_accuracy_benchmark.py,tests/studio/test_measure_design.py,tests/ci/test_owner_dev_launcher_contract.py: 161 passedtests/calibration,tests/packaging,tests/test_pytest_markers.py: 100 passedtests/ci,tests/core/test_resource_paths.py,tests/studio/test_frozen_runtime.py: 48 passed🤖 Generated with Claude Code