1
0
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:
Sun Aries
2021-04-02 16:23:21 +08:00
committed by GitHub
parent 1491a5d3ae
commit 0b5300f74b

View File

@@ -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))