Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

hmm

Ptr<aruco::DetectorParameters> params;  // and ? nothing else here ?
params->cornerRefinementMethod = aruco::CORNER_REFINE_NONE;

hmm

Ptr<aruco::DetectorParameters> params;  // and ? nothing else here ?
? (params is invalid)
params->cornerRefinementMethod = aruco::CORNER_REFINE_NONE;

hmm

Ptr<aruco::DetectorParameters> params;  // and ? nothing else here ? (params is invalid)
params->cornerRefinementMethod = aruco::CORNER_REFINE_NONE;

hmmyou've found a bug in the tutorial ;)

if you want to use additional params for the aruco detection, you need a valid instance of it

(as it is in the sample code) :

Ptr<aruco::DetectorParameters> params;  params = aruco::DetectorParameters::create();
// nothing else here ? (params is invalid)
now youcan use a "valid pointer" to set param values:
params->cornerRefinementMethod = aruco::CORNER_REFINE_NONE;

// also now with valid params 
aruco::detectMarkers(image, dictionary, corners, ids, params);