Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More flexible cameras.yaml #88

Open
wants to merge 8 commits into
base: dev
Choose a base branch
from

Conversation

Blattvorhang
Copy link

Changed h5_to_db.py, cameras.yaml now supports globbing and custom intrinsics.

Example:

general:
  camera_model: "pinhole" # ["simple-pinhole", "pinhole", "simple-radial", "opencv"]
  openmvg_camera_model: "pinhole_radial_k3" # ["pinhole", "pinhole_radial_k3", "pinhole_brown_t2"]
  single_camera: True
  intrinsics: ~  # None

cam0:
  camera_model: "pinhole"
  intrinsics: [
    481.14, 478.43, 481.44, 383.72
  ]
  images : "cam0_*.jpg"

cam1:
  camera_model: "opencv"
  intrinsics: [
    481.91, 482.20, 482.70, 384.33,
    0.0, 0.0, 0.0, 0.0
  ]
  images : "cam1_*.jpg"

franioli and others added 8 commits October 16, 2024 11:34
- Remove Python 2 compatibility checks and code paths.
- Simplify `array_to_blob` and `blob_to_array` functions using `tobytes` and `frombuffer`.
- changed np.NaN to np.nan for compatibility with numpy 2.0
- Simplify `array_to_blob` and `blob_to_array` functions using `tobytes` and `frombuffer`.
- Remove Python 2 compatibility checks and code paths.
Specify the version of pycolmap in Dockerfile
@Blattvorhang Blattvorhang changed the title More Flexible cameras.yaml More flexible cameras.yaml Dec 26, 2024
@Blattvorhang Blattvorhang reopened this Dec 26, 2024
@franioli franioli added the enhancement New feature or request label Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants