Skip to content

Add a reproducible Gyroflow/Lensfun camera catalogue to profile releases - #37

Open
valimikayilov wants to merge 1 commit into
gyroflow:mainfrom
valimikayilov:codex/bounty-742-camera-database
Open

Add a reproducible Gyroflow/Lensfun camera catalogue to profile releases#37
valimikayilov wants to merge 1 commit into
gyroflow:mainfrom
valimikayilov:codex/bounty-742-camera-database

Conversation

@valimikayilov

@valimikayilov valimikayilov commented Sep 6, 2026

Copy link
Copy Markdown

Camera and lens selection needs a catalogue that includes known equipment even
when there is no Gyroflow calibration for it. This adds a generated catalogue
combining the current profile metadata and a pinned Lensfun database, and ships
it through the existing profiles.cbor.gz release.

Related to gyroflow/gyroflow#742. The companion
application PR #1212 reads the
reserved __camera_database entry and retains an offline fallback for older
bundles. Existing clients already ignore reserved entries.

  • Add a standard-library Python generator, five tests and a pinned Lensfun
    submodule. The generated data contains 2,316 cameras, 7,762 lenses and 52 mounts.
  • Preserve aliases and camera variants, record mount compatibility and physical
    sensor crop factors, and derive sensor dimensions only when an aspect ratio is
    supplied. Per-profile video crop factors are not used as sensor measurements.
  • Regenerate the catalogue before release compression. Exclude Lensfun sources
    and tooling fixtures from the calibration bundle.
  • Preserve source attribution and distribute the combined catalogue under
    CC BY-SA 3.0. Existing Gyroflow profiles retain their CC0 licence.

Validation: all five generator tests pass, regeneration matches the committed
JSON, and the production compressor produced a verified bundle containing
9,810 calibration/preset entries plus the version and catalogue metadata. The
companion app successfully loads this bundle.

Lensfun is used here for catalogue metadata. This does not import Lensfun
distortion models as Gyroflow calibrations.

AI and third-party material disclosure: the generator, tests and integration were
produced with OpenAI Codex assistance, then reviewed and tested in that coding
workflow. The catalogue contains third-party Gyroflow profile metadata (CC0) and
Lensfun data (CC BY-SA 3.0); the sources, pinned revision and data licence are
identified in the JSON and CAMERA_DATABASE.md. Those source data are not claimed
as original authorship by this contributor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant