diff --git a/alg/qrtool.cpp b/alg/qrtool.cpp index ffcc7a3..a7c7e9d 100644 --- a/alg/qrtool.cpp +++ b/alg/qrtool.cpp @@ -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