Ask Your Question
0

usage of detect_markers.exe

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

czjczjczj1 gravatar image

Hello, I tried running one of the samples of aruco (I downloaded from here https://github.com/opencv/opencv_cont...). But I didn't really know how to enter the parameters.

Basic marker detection
Usage: test.exe [params]

    -c
            Camera intrinsic parameters. Needed for camera pose
    --ci (value:0)
            Camera id if input doesnt come from video (-v)
    -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,DICT_APRILTAG_16h5=17, DICT_APRILTAG_25h9=18, DICT_APRILTAG_36h10=19, DICT_APRILTAG_36h11=20
    --dp
            File of marker detector parameters
    -l (value:0.1)
            Marker side lenght (in meters). Needed for correct scale in camera pose
    -r
            show rejected candidates too
    --refine
            Corner refinement: CORNER_REFINE_NONE=0, CORNER_REFINE_SUBPIX=1,CORNER_REFINE_CONTOUR=2, CORNER_REFINE_APRILTAG=3
    -v
            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

ERRORS:
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
0

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

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

Comments

1
LBerger gravatar imageLBerger ( 2019-01-06 10:33:28 -0600 )edit

Question Tools

1 follower

Stats

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

Seen: 259 times

Last updated: Jan 06 '19