Revert "qrtool: Use adaptiveThreshold to find roi"

This reverts commit 30b23b82ded6468c7953611a1dac782d10e86605.

It caused regression on emtest
This commit is contained in:
Fam Zheng 2025-03-24 23:12:51 -07:00
parent 008e3839bb
commit d5c2be6727

View File

@ -304,7 +304,7 @@ static void get_bin(Mat &orig, Mat &out)
convertScaleAbs(gray, gray, 2);
// bilateralFilter(gray, filtered, 9, 150, 150, BORDER_DEFAULT);
medianBlur(gray, gray, 9);
adaptiveThreshold(gray, out, 255, ADAPTIVE_THRESH_GAUSSIAN_C, THRESH_BINARY, 11, 2);
threshold(gray, out, 128, 255, THRESH_BINARY);
}
static