-
Hi, I try to calculate camera rig, but with no susses. I cannot find some description how to start it.
and tried to:
I have made sfm file with StructurFromMotion (and changed path for V1):
And started it with (tried it with gui to): C:\Users\Xma1\Desktop\Meshroom-2021.1.0\aliceVision\bin\aliceVision_rigCalibration.exe --sfmdata "C:/Users/Xma1/Desktop/RIGCHECK/cameras.sfm" --mediapath "C:/Users/Xma1/Desktop/RIGCHECK/rig2" --cameraIntrinsics "" --export "trackedcameras.abc" --descriptorPath "C:/Users/Xma1/Desktop/RIGCHECK/MeshroomCache/FeatureExtraction/54f7cb26c30018d5c72e877dd2e64093752516a7" --matchDescTypes sift --preset normal --resectionEstimator acransac --matchingEstimator acransac --refineIntrinsics "" --reprojectionError 4.0 --maxInputFrames 0 --voctree "C:\Users\Xma1\Desktop\Meshroom-2021.1.0\aliceVision\share\aliceVision\vlfeat_K80L3.SIFT.tree" --voctreeWeights "" --algorithm AllResults --nbImageMatch 4 --maxResults 10 --matchingError 4.0 --nNearestKeyFrames 5 --outfile "C:/Users/Xma1/Desktop/RIGCHECK/MeshroomCache/CameraRigCalibration/b1a2e820962e78196cda5068fe72cd3b64b0502e/cameraRigCalibration.rigCal" C:\Users\Xma1\Desktop\Meshroom-2021.1.0\aliceVision\bin\aliceVision_rigCalibration.exe --sfmdata "C:/Users/Xma1/Desktop/RIGCHECK/MeshroomCache/StructureFromMotion/6690c080eef5b22e67b337953828c95ce98fa92b/cameras.sfm" --mediapath "C:/Users/Xma1/Desktop/RIGCHECK/rig2" --cameraIntrinsics "" --export "trackedcameras.abc" --descriptorPath "C:/Users/Xma1/Desktop/RIGCHECK/MeshroomCache/FeatureExtraction/54f7cb26c30018d5c72e877dd2e64093752516a7" --matchDescTypes sift --preset normal --resectionEstimator acransac --matchingEstimator acransac --refineIntrinsics "" --reprojectionError 4.0 --maxInputFrames 0 --voctree "C:\Users\Xma1\Desktop\Meshroom-2021.1.0\aliceVision\share\aliceVision\vlfeat_K80L3.SIFT.tree" --voctreeWeights "" --algorithm AllResults --nbImageMatch 4 --maxResults 10 --matchingError 4.0 --nNearestKeyFrames 5 --outfile "C:/Users/Xma1/Desktop/RIGCHECK/MeshroomCache/CameraRigCalibration/b1a2e820962e78196cda5068fe72cd3b64b0502e/cameraRigCalibration.rigCal" but I get:
Calibrating sequence using the voctree localizer
[2021-04-16 15:02:15.071640] [0x00002984] [debug] folder without expression: C:/Users/Xma1/Desktop/RIGCHECK/rig2 Processed 0 images for camera 0 Camera 0 localized 0/0 C:\Users\Xma1\Desktop\Meshroom-2021.1.0\aliceVision\bin\aliceVision_rigCalibration.exe --sfmdata "C:/Users/Xma1/Desktop/RIGCHECK/cameras.sfm" --mediapath "C:/Users/Xma1/Desktop/RIGCHECK/rig2" --cameraIntrinsics "" --export "trackedcameras.abc" --descriptorPath "C:/Users/Xma1/Desktop/RIGCHECK/MeshroomCache/FeatureExtraction/54f7cb26c30018d5c72e877dd2e64093752516a7" --matchDescTypes sift --preset normal --resectionEstimator acransac --matchingEstimator acransac --refineIntrinsics "" --reprojectionError 4.0 --maxInputFrames 0 --voctree "C:\Users\Xma1\Desktop\Meshroom-2021.1.0\aliceVision\share\aliceVision\vlfeat_K80L3.SIFT.tree" --voctreeWeights "" --algorithm AllResults --nbImageMatch 4 --maxResults 10 --matchingError 4.0 --nNearestKeyFrames 5 --outfile "C:/Users/Xma1/Desktop/RIGCHECK/MeshroomCache/CameraRigCalibration/b1a2e820962e78196cda5068fe72cd3b64b0502e/cameraRigCalibration.rigCal"
Calibrating sequence using the voctree localizer
[2021-04-16 16:35:46.398371] [0x0000620c] [debug] folder without expression: C:/Users/Xma1/Desktop/RIGCHECK/rig2 Processed 0 images for camera 0 Camera 0 localized 0/0 |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 5 replies
-
At the moment the Rig support is highly sensitive to configuration / metadata issues. So it is possible the rig is not defined properly due to the missing metadata. |
Beta Was this translation helpful? Give feedback.
-
Your camera is listed in the sensordb:
No, we don´t need a serial number for each image, but for each camera:
(Side note: having the same serial number for 101.png from camera 1 and 101.png from camera 2 would result in only one image being imported, as Meshroom would assume it to be the same image, since the timestamp and filename is identical. Error message at the end of the page -> https://github.com/alicevision/meshroom/wiki/Multi-Camera-Rig) When you drop the rig sub-folders into Meshroom, the rig constraint will be recognized and you will be able to see it in the CameraInit node (see Rig and Rig Sub-Pose of the Viewpoints parameter). Check if that is the case. |
Beta Was this translation helpful? Give feedback.
-
Please try the default graph first and make sure it works before adding other nodes. CameraInit should detect the rig correctly and the SfM should compute without errors. You could share a portion of the (raw, unmodified) dataset if you want and I can take a look. CameraRigCalibration is optional - details: https://meshroom-manual.readthedocs.io/en/latest/feature-documentation/nodes/CameraRigCalibration.html |
Beta Was this translation helpful? Give feedback.
-
here are images and Blender file where i put cameras to first camera and moved first camera to Zero. After Metadata changes much better, but there is still difference. If i fill one camera with black color (to emit that camera have no points), camera is removed (on rig we can get position of that camera with help of another). https://www.dropbox.com/t/SBV7ZmZf8FE9Onci and where is example for /path/to/calib1.txt for CameraRigCalibration to get relative poses between cameras of the rig and choose the more stable value across the images? |
Beta Was this translation helpful? Give feedback.
-
I´ll take a look.
You can calibrate each camera with https://meshroom-manual.readthedocs.io/en/latest/feature-documentation/nodes/CameraCalibration.html This is how the correctly set up rig should look like in camerainit. If rig pose and/or sub pose is -1 something went wrong for two cameras there should also be only two intrinsics: (ignore the 2019.1 name in the path, it´s just where I put the image files) Your dataset has 8 intrinsics declared, only two are expected: Checking the metadata I noticed your PixelXDimension is changing between images! Images should always have the same,fixed dimensions. The BodySerialNumber should be different for each camera but stay the same for images taken from the same camera. each of the two cameras chould have a unique serialnumber. The changing PixelXDimension results in Meshroom assuming you have 8 different cameras, as changing the x dimension is not expected for the same camera. Never modify (crop/distort) images prior import for photogrammetry use. |
Beta Was this translation helpful? Give feedback.
I´ll take a look.
You can calibrate each camera with https://meshroom-manual.readthedocs.io/en/latest/feature-documentation/nodes/CameraCalibration.html
As you don´t have access to your camera you can not use camera calibration, as it requires images/videos of a calibration pattern.
This is how the correctly set up rig should look like in camerainit. If rig pose and/or sub pose is -1 something went wrong for two cameras there should also be only two intrinsics:
(ignore the 2019.1 name in the path, it´s just where I put…