# Automatic camera-up estimation Motion API 1.13.0 ยท 19 October 2026 `POST /v1/motion-analyses` estimates camera-up when `up_vector` is omitted/null. The implementation is shared by SAM 3D Body and GVHMR. Supplied vectors and sources always take priority, even if the estimator is unavailable. Existing SAM/coaching API contracts retain their processing paths. ## Provider and coordinates Provider: [GeoCalib, cvg/ETH Zurich](https://github.com/cvg/GeoCalib), revision `1dedb29f94fc11b896c5f572005978aeebccd67f`. Official v1.0 pinhole weights: `86d6aeacd8bbd974c59ce39f61854e00d36911c732ad89be471476fd708722ac` (SHA-256). Code: Apache-2.0. Weights: CC-BY-4.0, Copyright 2024 ETH Zurich. No model weights were modified. See the provider's `LICENSE` and `LICENSE-WEIGHTS`. GeoCalib's `Gravity.vec3d` is already camera-up in x-right/y-down/z-away axes: `Gravity.from_rp(0,0)` is `[0,-1,0]`. Do not negate it. Frames use the same orientation correction as body inference. A supplied intrinsic/distortion model rectifies only estimator input pixels to a centred equal-focal pinhole image, without rotating its optical/camera basis. The source video, supplied calibration, body intrinsics and output projections are not rewritten by this stage. The standard Docker image installs GeoCalib in the existing isolated Torch runtime and bakes the checksummed checkpoint. No provider credentials or remote video/image upload is involved. Inference is offline, CUDA, FP32 with TF32 disabled; NMF initialization uses seed 0 per frame. Setup verifies offline model construction. Missing setup or inference failure safely leaves camera-up unknown. Capabilities expose `automatic_camera_up.configured` and the method/frame. ## Acceptance Defaults sample seven distinct frames spread over original video timestamps. At least three reliable distinct images must span 75% of playback duration. The selected athlete's expanded box is excluded from support diagnostics. Sparse learned up/latitude confidences are relative image weights, not detection probabilities. Checks require textured background, distributed effective support, agreement between fitted geometry and predicted fields, positive finite gravity covariance, and model-reported gravity uncertainty no greater than five degrees. At least 80% of credible frame vectors must agree within three degrees; no sign flipping forces consensus. A final mean is normalized and rechecked. All gates appear in `options.up_estimation` and returned settings. They are configurable engineering gates, not independently validated error limits. A consistent learned prediction can still be wrong. No confidence percentage or calibrated accuracy interval is invented. Unmodelled lens distortion, ambiguous scenes, unstable camera orientation, inadequate coverage, textureless background, or numerical uncertainty can leave the result unknown. ## Response and calculation provenance Read `coordinates.up_vector`, `up_source`, `up_vector_frame`, and `up_estimation`. The latter contains status (`provided`, `estimated`, `unknown`), `method`, `applied`, `reliable`, reason codes and diagnostics. `applied` means selected as a calculation input, not that all measurements became eligible. User-provided inputs have `reliable: null`; they are not independently checked. Rejected per-frame candidates are diagnostic only, never effective up vectors. `pipeline.inputs` preserves the exact validated submission. Reliable estimates are added to separate `pipeline.calculation_inputs`. Measurements, orientation, series and public-artifact reproduction use those effective inputs. Metrics depending on estimated vertical carry `vertical_reference_estimated_from_images`. Quality and measurement artifacts also include the reference; raw per-frame worker files are private and are not artifact download endpoints. Camera stability, physical timing, scale, reviewed events and field/pitcher direction keep their existing eligibility checks. Camera-up estimation does not establish any of them. Scene motion can still contradict a fixed-camera claim and withhold dependent metrics. Revisions re-estimate when the source input still has no explicit vector; they never overwrite an immutable parent result. Disable explicitly with `{"up_estimation":{"enabled":false}}`. All numerical defaults and validation bounds are published in the motion input schema.