mirror of
https://github.com/opencv/opencv_contrib.git
synced 2025-10-17 15:26:00 +08:00
consider the rectangle marker in the future.
It is now had been what was wanted to be here. Or we may do some asserts before e.g. `CV_ASSERT(candidateBits.rows == candidateBits.cols); `.
This commit is contained in:
@@ -564,7 +564,7 @@ static uint8_t _identifyOneCandidate(const Ptr<Dictionary>& dictionary, InputArr
|
||||
Mat onlyBits =
|
||||
candidateBits.rowRange(params->markerBorderBits,
|
||||
candidateBits.rows - params->markerBorderBits)
|
||||
.colRange(params->markerBorderBits, candidateBits.rows - params->markerBorderBits);
|
||||
.colRange(params->markerBorderBits, candidateBits.cols - params->markerBorderBits);
|
||||
|
||||
// try to indentify the marker
|
||||
if(!dictionary->identify(onlyBits, idx, rotation, params->errorCorrectionRate))
|
||||
|
Reference in New Issue
Block a user