-
Notifications
You must be signed in to change notification settings - Fork 612
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
Multiple cameras instead of single one #219
Comments
Example: opts = dict(camera_model='SIMPLE_RADIAL', camera_params=','.join(map(str, (f, cx, cy, k))))
model = reconstruction.main(..., image_options=opts) You can decide to not refine them by adding reconstruction.main(..., mapper_options=dict(ba_refine_focal_length=False, ba_refine_extra_params=False)) |
For 222 images I get 222 cameras in colmap model. They all have the same type, resolution, but other parameters are different. A few lines from exported
Please note, that all these images come from the same iPhone camera. There is an extra step of filming the video first and then using ffmpeg to screenshot frames. Is this result expected?
Thank you! Looking... |
It works, I needed to grab the latest version and recompile This code: opts = dict(camera_model='OPENCV')
model = reconstruction.main(sfm_dir, images, sfm_pairs, feature_path,
match_path, camera_mode=pycolmap.CameraMode.SINGLE,
image_options=opts,
verbose=True) now returns this, which is exactly what I need. Thank you!
|
Brilliant library! Thank you for creating it.
I have an issue in following setup. I have multiple videos captured with single iPhone. Videos are converted to images with ffmpeg tool. All images are getting localized in 3D reconstruction and the position seems to be correct. However, in output colmap model I see mutiple cameras created with different intrinsic parameters.
I tried to specify mode with Single camera, but that didn't change anything:
How should I specify that I have single camera only? If I know intrinsic parameters, can I pass them over?
The text was updated successfully, but these errors were encountered: