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

aliceVision_cameraInit: At least one image should have an initialized intrinsic. #1756

Open
Poly2it opened this issue Oct 6, 2024 · 0 comments

Comments

@Poly2it
Copy link

Poly2it commented Oct 6, 2024

I forced AliceVision to not throw an error, and return EINTRINSIC::PINHOLE_CAMERA for non-matches:

diff --git a/src/aliceVision/camera/Pinhole.cpp b/src/aliceVision/camera/Pinhole.cpp
index ed1498ab3..9d45329d3 100644
--- a/src/aliceVision/camera/Pinhole.cpp
+++ b/src/aliceVision/camera/Pinhole.cpp
@@ -333,7 +333,7 @@ EINTRINSIC Pinhole::getType() const
             case EDISTORTION::DISTORTION_3DEANAMORPHIC4:
                 return EINTRINSIC::PINHOLE_CAMERA_3DEANAMORPHIC4;
             default:
-                throw std::out_of_range("Invalid distortion model for pinhole camera.");
+                return EINTRINSIC::PINHOLE_CAMERA;
         }
     }
 
@@ -344,7 +344,7 @@ EINTRINSIC Pinhole::getType() const
             case EDISTORTION::DISTORTION_3DEANAMORPHIC4:
                 return EINTRINSIC::PINHOLE_CAMERA_3DEANAMORPHIC4;
             default:
-                throw std::out_of_range("Invalid undistortion model for pinhole camera.");
+                return EINTRINSIC::PINHOLE_CAMERA;
         }
     }
 

I would not expect this to resolve the issue.

This yields a new error, which to my knowledge should not be able to occur with the Monstree dataset I am testing with:

[New Thread 0x7fffe6200000 (LWP 2025839)]
...
[New Thread 0x7fffc6a00000 (LWP 2025856)]
[16:28:45.825439][warning] Some image(s) have no serial number to identify the camera/lens device.
This makes it impossible to correctly group the images by device if you have used multiple identical (same model) camera devices.
The reconstruction will assume that only one device has been used, so if 2 images share the same focal length approximation they will share the same internal camera parameters.
3 image(s) are concerned.
[16:28:45.825463][error] At least one image should have an initialized intrinsic.
Check your input images metadata (brand, model, focal length, ...), more should be set and correct.
[Thread 0x7fffe6200000 (LWP 2025839) exited]
...
[Thread 0x7fffc6a00000 (LWP 2025856) exited]
[Inferior 1 (process 2025836) exited with code 01]

It would be helpful to see the exact build instructions, revision and potential patches used for the binary distribution.

Originally posted by @Poly2it in alicevision/Meshroom#2260 (comment)

I have reproduced this issue with the latest development versions of AliceVision, QtAliceVision and Meshroom. The images I am testing with come from the Monstree dataset. I am unable to successfully create a working copy of AliceVision from source due to this issue, as are other users in alicevision/Meshroom#2260.

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

No branches or pull requests

1 participant