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:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user