Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

calibrate-camera-charuco sample error

I am trying to use the opencv calibrate-camera-charuco sample, from here:

https://github.com/opencv/opencv_contrib/blob/master/modules/aruco/samples/calibrate_camera_charuco.cpp

I have it building but cannot get it to run. When i launch it with the command line:

charuco-calibration.exe -t=charuco -pf=defaultConfig.xml -h=5 -w=8 -d=16 -sl=0.032 -ml=0.017 -ci=0 -dp=detector_params.yml

It gives me the error:

Missing parameter #0

This seems like a bug-error, as I cannot find anything matching that parameter anywhere. Has anyone used this sample successfully? or run across this error?

the expected commands, as listed in the code, are:

   "{w        |       | Number of squares in X direction }"
    "{h        |       | Number of squares in Y direction }"
    "{sl       |       | Square side length (in meters) }"
    "{ml       |       | Marker side length (in meters) }"
    "{d        |       | dictionary: DICT_4X4_50=0, DICT_4X4_100=1, DICT_4X4_250=2,"
    "DICT_4X4_1000=3, DICT_5X5_50=4, DICT_5X5_100=5, DICT_5X5_250=6, DICT_5X5_1000=7, "
    "DICT_6X6_50=8, DICT_6X6_100=9, DICT_6X6_250=10, DICT_6X6_1000=11, DICT_7X7_50=12,"
    "DICT_7X7_100=13, DICT_7X7_250=14, DICT_7X7_1000=15, DICT_ARUCO_ORIGINAL = 16}"
    "{@outfile |<none> | Output file with calibrated camera parameters }"
    "{v        |       | Input from video file, if ommited, input comes from camera }"
    "{ci       | 0     | Camera id if input doesnt come from video (-v) }"
    "{dp       |       | File of marker detector parameters }"
    "{rs       | false | Apply refind strategy }"
    "{zt       | false | Assume zero tangential distortion }"
    "{a        |       | Fix aspect ratio (fx/fy) to this value }"
    "{pc       | false | Fix the principal point at the center }"
    "{sc       | false | Show detected chessboard corners after calibration }";

thank you.