brokkr_reference: a reference view's camera solved from marked points (cut reference-camera) #35

Merged
eureka merged 7 commits from nibu/reference-camera into main 2026-12-02 19:07:57 +00:00

2026-12-02

Meta Vens
docs/reference.md: the refusals of undecidable marks, and the band's step as its resolution
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-02 19:40:42 +01:00
Meta Vens
brokkr_reference: refuse marks that decide no camera, pin the uncapped band walk, ReferenceFitError
solve() refuses, before any solve and by which they are: fewer than six different world
points or pixels, pixels on one line, world points on one line, and world points in one
plane unless the lens is held and the centre is not solved. A record that is not finite
is refused too. One pixel for every name was a bare ValueError and one world point a
record of NaN (finding degenerate-marks-not-refused).

test_a_wide_band_is_walked_to_its_end kills a walk capped at 20 steps (M13): 4000 mm
shipped, 1177 capped, bound 2170. The lm call count that claims M3 is a bound, 61,
between 34 and 109. ReferenceError, which shadowed the builtin, is ReferenceFitError.
The docstring says a band of [x, x] is narrower than one step, not an exact lens.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-02 19:40:41 +01:00
Meta Vens
test_reference: say where the unbounded-focal mutant died
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-02 19:21:12 +01:00
Meta Vens
docs/reference.md: conventions, the action, and what the lens band means
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-02 19:18:39 +01:00
Meta Vens
tests/live/reference.py: a known scene rendered, solved through the action, rendered again
1 - IoU of the two silhouettes 0.000168 (0.6489 with shift_y flipped); Blender 5.3.0.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-02 19:18:38 +01:00
Meta Vens
brokkr_reference.solve_camera: the host action, its row and its table tests
Points go in as text (world, pixels, box, turned, pivot); with camera_name the
camera is created or updated at the record and the render size set to the box.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-02 19:18:38 +01:00
Meta Vens
brokkr_reference.core: a reference view's camera solved from marked points
Ported from round 9's experiments/mechs/camsolve.py (3f45b67). The focal length is
held to 4-4000 mm at the box's width; the record carries lens_band (an equal-error
band, walked to the first miss or the bound) and lens_at_bound; square snaps the yaw
to a quarter turn; solve refuses by ReferenceError naming the cause; camera_of reads
blender() back. Place is solved as a dolly-zoom offset so log f alone is the
distance-lens trade, and a parameter held at a bound sits out of the LM step.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-02 19:14:45 +01:00