brokkr_reference: a reference view's camera solved from marked points (cut reference-camera) #35
Loading…
Reference in a new issue
No description provided.
Delete branch "nibu/reference-camera"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Cut
aetheria-release:cut_spec:cut-reference-camera.r1(rulingsreference-fit-in-brokkr,reference-lens-band-bounded).A new host add-on,
surfaces/blender/brokkr_reference: the camera a reference view was drawn through, solved from points known in the world and marked on the image. Ported from round 9'sexperiments/mechs/camsolve.py(3f45b67). Only new files; nothing on main changes behaviour.core.py(numpy and the standard library):solve,project,ray,lift,lm,blender,camera_of,in_frame, and the action's field parsers. The focal length is held to 4-4000 mm at the box's width; the record carrieslens_band(an equal-error band, not a confidence interval) andlens_at_bound;squaresnaps the yaw to the nearest quarter turn; refusals areReferenceError(ValueError)naming the cause.brokkr_reference.solve_camera(one row inbrokkr_actions.json): points in as text, the camera record out inhostResult; withcamera_namea camera is created or updated there and the render size set to the box.docs/reference.md,tests/test_reference.py(19 tests, no Blender),tests/live/reference.pywith its result (14 checks, Blender 5.3.0).Beyond the port, in
core.py:lens_at_bound: "long".squaretook its final yaw from the last start, not the best one; it now reads it from the solved vector.blender()returns a dict, andin_frameaccounts for the frame's whole-pixel height.solve(lens=...)holds the lens.Verification: the unit suite passes (533 tests, 20 skipped); mutants M1 to M7 each die (M4 in
SolveTests.setUpClass, by OverflowError); the live re-render's silhouette misses the first by 1 - IoU = 0.000168 (0.6489 withshift_yflipped).Cost:
test_reference.pytakes 25 to 50 s (about 20 solves at 1 to 6 s each).🤖 Generated with Claude Code
🤖 Generated with Claude Code