Ask Your Question

usage of detect_markers.exe

asked 2019-01-06 10:15:39 -0500

czjczjczj1 gravatar image

Hello, I tried running one of the samples of aruco (I downloaded from here But I didn't really know how to enter the parameters.

Basic marker detection
Usage: test.exe [params]

            Camera intrinsic parameters. Needed for camera pose
    --ci (value:0)
            Camera id if input doesnt come from video (-v)
            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,DICT_APRILTAG_16h5=17, DICT_APRILTAG_25h9=18, DICT_APRILTAG_36h10=19, DICT_APRILTAG_36h11=20
            File of marker detector parameters
    -l (value:0.1)
            Marker side lenght (in meters). Needed for correct scale in camera pose
            show rejected candidates too
            Input from video file, if ommited, input comes from camera

when I enter "detect_markers.exe -d 0 ", an error occurred

OpenCV(4.0.0) Error: Bad argument (can not convert: [true] to [int]) in cv::from_str, file c:\build\master_winpack-     build-win64-vc15\opencv\modules\core\src\command_line_parser.cpp, line 116
Corner refinement method (0: None, 1: Subpixel, 2:contour, 3: AprilTag 2): 0

Parameter 'd': can not convert: [true] to [int]

So I don't really know how to enter the parameters. Thanks for any help.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2019-01-06 10:30:25 -0500

berak gravatar image

you have to pass arguments like --key=value , so your cmdline would be:

detect_markers.exe -d=0
edit flag offensive delete link more


LBerger gravatar imageLBerger ( 2019-01-06 10:33:28 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2019-01-06 10:15:39 -0500

Seen: 16 times

Last updated: Jan 06