Skip to main content

just-ba

Minimal, fast bundle adjustment, with Python bindings. Its main job is refining reconstructions that come with noisy camera poses from ARKit, ARCore or another tracker: the tracker's poses become relative or global pose priors, and the solver refines poses, points and intrinsics against the keypoint observations.

  • Backends: CPU (double precision, the reference), Metal on Apple Silicon, CUDA on NVIDIA GPUs (single precision on the GPUs).
  • Correctness means agreeing with Ceres Solver on the same problem.
  • Camera models SIMPLE_PINHOLE, PINHOLE, SIMPLE_RADIAL, RADIAL, OPENCV and OPENCV_FISHEYE, with COLMAP's parameter order.
  • Priors: relative and global pose priors, gravity, a Manhattan prior from line segments, and depth at keypoints.

Install

Package Platforms Backends
pip install just-ba Linux x86_64, macOS arm64 (13 or later), Windows x86_64 CPU; Metal on macOS
pip install just-ba-cu12 Linux x86_64, Windows x86_64 CPU and CUDA 12
pip install just-ba-cu13 Linux x86_64, Windows x86_64 CPU and CUDA 13

Install one of them: all three provide the just_ba module. The CUDA packages install NVIDIA's cuDSS, cuBLAS and NVRTC from pip and need an NVIDIA driver. Python 3.12 or later.

import just_ba
print(just_ba.__version__, just_ba.compiled_backends())
print(just_ba.backend_available(just_ba.Backend.CUDA))

Use

just_ba.refine(scene, keypoints, matches=...) is the main entry point: a Problem holding the camera and the pose priors, one (n, 2) keypoint array per image, and pairwise matches (m, 4). just_ba.poses_from_camera_to_world(T, "arkit") converts ARKit or ARCore camera-to-world matrices to the library's poses. just_ba.solve(problem, options) solves a Problem that already has its points and observations.

Licence: Apache-2.0.

Metadata

Release files for just-ba 0.1.14

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for just-ba 0.1.14
File Size Uploaded Provenance Actions
just_ba-0.1.14.tar.gz 9.4 MB With provenance Details for just_ba-0.1.14.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for just-ba 0.1.14
File Interpreter ABI Platform Actions
just_ba-0.1.14-cp312-abi3-win_amd64.whl CPython 3.12 abi3 Windows x86-64 Details for just_ba-0.1.14-cp312-abi3-win_amd64.whl
just_ba-0.1.14-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.12 abi3 Linux glibc 2.27+ x86-64, Linux glibc 2.28+ x86-64 Details for just_ba-0.1.14-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
just_ba-0.1.14-cp312-abi3-macosx_13_0_arm64.whl CPython 3.12 abi3 macOS 13.0+ ARM64 Details for just_ba-0.1.14-cp312-abi3-macosx_13_0_arm64.whl

Total release size: 11.1 MB

Release files / just_ba-0.1.14.tar.gz

Download URL just_ba-0.1.14.tar.gz
Size 9.4 MB
Tags Source
SHA-256 checksum
How to use checksums
c7835d11de4993454bd00d636747238426ed32d7286dd525973975372e7b5bcf
BLAKE2b-256 checksum
How to use checksums
1afc6eb1f781439d60f2e351f5b34b82d04b6c0eadc0e75e02c0c47f67194ae0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

Release files / just_ba-0.1.14-cp312-abi3-win_amd64.whl

Download URL just_ba-0.1.14-cp312-abi3-win_amd64.whl
Size 649.2 kB
Tags CPython 3.12 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
cfbb2a700caeec4ad6308f94a5546d9c28d889a05429f1426576bfce5dea8806
BLAKE2b-256 checksum
How to use checksums
f7921623175d3a56dff9ad9bb88ecb181d4656e6580e84a719329082ecf1fe0a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

Release files / just_ba-0.1.14-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL just_ba-0.1.14-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 586.8 kB
Tags CPython 3.12 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
1ba2f76ada4ad1a9aeaebd349c9370be64f7dcb810cec1f468e0e071a8edcd1b
BLAKE2b-256 checksum
How to use checksums
aa2fb3ddbd481f08c2b9d39612154363ccce510f593079b62220a6ddcff3f6cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

Release files / just_ba-0.1.14-cp312-abi3-macosx_13_0_arm64.whl

Download URL just_ba-0.1.14-cp312-abi3-macosx_13_0_arm64.whl
Size 489.3 kB
Tags CPython 3.12 abi3 macOS 13.0+ ARM64
SHA-256 checksum
How to use checksums
9f272c83aff9ba85d6f8c6409bce8b6cee4f61778476b08a72614b995e6d80d9
BLAKE2b-256 checksum
How to use checksums
068a0fa0d2e5d09a963cda87833a4eca60402b323d158ae0750572a2b6c3faa8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

Security for just-ba 0.1.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 4 files in this release have been uploaded with provenance metadata.

Select from 4 files

Attestation for just_ba-0.1.14.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page