From 70424df9be6eebb348440303d3bfde5d7695c528 Mon Sep 17 00:00:00 2001 From: Matt Hill Date: Wed, 2 Jul 2014 17:38:11 -0400 Subject: [PATCH] reduced thresholds from 4 to 3 --- src/openalpr/utility.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/openalpr/utility.cpp b/src/openalpr/utility.cpp index cc40e9c..036317e 100644 --- a/src/openalpr/utility.cpp +++ b/src/openalpr/utility.cpp @@ -109,7 +109,7 @@ void displayImage(Config* config, string windowName, cv::Mat frame) vector produceThresholds(const Mat img_gray, Config* config) { - const int THRESHOLD_COUNT = 4; + const int THRESHOLD_COUNT = 3; //Mat img_equalized = equalizeBrightness(img_gray); timespec startTime; @@ -145,9 +145,9 @@ vector produceThresholds(const Mat img_gray, Config* config) k = 1; NiblackSauvolaWolfJolion (img_gray, thresholds[i++], SAUVOLA, 12, 12, 0.18 * k); bitwise_not(thresholds[i-1], thresholds[i-1]); - k=2; - NiblackSauvolaWolfJolion (img_gray, thresholds[i++], SAUVOLA, 12, 12, 0.18 * k); - bitwise_not(thresholds[i-1], thresholds[i-1]); + //k=2; + //NiblackSauvolaWolfJolion (img_gray, thresholds[i++], SAUVOLA, 12, 12, 0.18 * k); + //bitwise_not(thresholds[i-1], thresholds[i-1]); if (config->debugTiming) {