Make minMarkerPerimeter and maxMarkerPerimeter user-configured for Multi+Aruco
Currently, the values for minMarkerPerimeter
and maxMarkerPerimeter
are hardcoded when the multicolormarker with code is used.
Code which does the hardcoding
else if (recoMethod == RecognitionMethod::MultiColor) // for usage of codemarker with MulticolorMarker
{
QRect rect(0,0, img.rows, img.cols);
// from Aruco Documentation values 0 + 4 all info is considered (low performance issues expected due to small image size)
minMarkerPerimeterRate = 0.02;
maxMarkerPerimeterRate = 4.;
}
The value should be assigned by the user, as it already is when directly using the codemarker.