1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-17 07:04:18 +08:00

add return for nn_detector

This commit is contained in:
AleksandrPanov
2022-09-20 11:37:53 +03:00
parent cfcfd5f411
commit a3afb879ca

View File

@@ -145,6 +145,9 @@ vector<Ref<Result>> QRCodeReader::decodeMore(Ref<BinaryBitmap> image, Ref<BitMat
setSuccFix(points);
result_list.push_back(result);
patternFoundFlag = true;
if (nowHints_.getUseNNDetector()) {
return result_list;
}
}
// try different dimentions
for (int j = 0; j < possibleAlignmentCount; j++) {
@@ -192,6 +195,9 @@ vector<Ref<Result>> QRCodeReader::decodeMore(Ref<BinaryBitmap> image, Ref<BitMat
setSuccFix(points);
result_list.push_back(result);
patternFoundFlag = true;
if (nowHints_.getUseNNDetector()) {
return result_list;
}
}
}
}