Entering camera parameters results in "0.122053491302558 was unexpected at this time."

172 views
Skip to first unread message

Keir Chaggar-Brown

unread,
May 19, 2021, 12:03:23 PM5/19/21
to COLMAP
Hi, I am trying to use custom parameters for the camera distortion and I do not understand what I am doing wrong. I have tried a variety of syntax and cannot get any other result.
Here is the start of the batch file I am using:
md "%2"
md "%2/sparse"
md "%2/dense"
call colmap.bat feature_extractor ^
    --image_path %1 ^
    --ImageReader.camera_params "546.356391732469, 0.122053491302558, 19.7906252705682, 0.437287515232191" ^
    --database_path %2/database.db ^
    --ImageReader.camera_model SIMPLE_RADIAL_FISHEYE ^
    --ImageReader.single_camera 1 ^
    --ImageReader.default_focal_length_factor 0.85 ^
    --SiftExtraction.max_image_size 3000 ^
    --SiftExtraction.max_num_features 10000

Powershell:

PS D:\Documents\Art\Working_Files\Programs\Colmap3.6> .\run.bat C:\Users\KeirC\Desktop\IMAGES C:\Users\KeirC\Desktop\ColmapDistortionTest

D:\Documents\Art\Working_Files\Programs\Colmap3.6>md "C:\Users\KeirC\Desktop\ColmapDistortionTest"

D:\Documents\Art\Working_Files\Programs\Colmap3.6>md "C:\Users\KeirC\Desktop\ColmapDistortionTest/sparse"

D:\Documents\Art\Working_Files\Programs\Colmap3.6>md "C:\Users\KeirC\Desktop\ColmapDistortionTest/dense"

D:\Documents\Art\Working_Files\Programs\Colmap3.6>call colmap.bat feature_extractor     --image_path C:\Users\KeirC\Desktop\IMAGES    --ImageReader.camera_params "546.356391732469, 0.122053491302558, 19.7906252705682, 0.437287515232191"   --database_path C:\Users\KeirC\Desktop\ColmapDistortionTest/database.db        --ImageReader.camera_model SIMPLE_RADIAL_FISHEYE        --ImageReader.single_camera 1
--ImageReader.default_focal_length_factor 0.85  --SiftExtraction.max_image_size 3000    --SiftExtraction.max_num_features 10000
0.122053491302558 was unexpected at this time.

Cheers,
Kind Regards, Keir
Reply all
Reply to author
Forward
0 new messages