From 366f8c1a42b4c2aa142f67abf23ec37e4a249701 Mon Sep 17 00:00:00 2001 From: Micooz Date: Tue, 9 Jun 2015 21:18:52 +0800 Subject: [PATCH] Don\'t dump tmp files to E:/. --- src/core/chars_segment.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/chars_segment.cpp b/src/core/chars_segment.cpp index f4ff672..1f7d0ef 100644 --- a/src/core/chars_segment.cpp +++ b/src/core/chars_segment.cpp @@ -103,10 +103,10 @@ int CCharsSegment::charsSegment(Mat input, vector& resultVec) { int h = input_grey.rows; Mat tmp = input_grey(Rect(w * 0.1, h * 0.1, w * 0.8, h * 0.8)); int threadHoldV = ThresholdOtsu(tmp); - utils::imwrite("E:/img_inputgray2.jpg", input_grey); + // utils::imwrite("E:/img_inputgray2.jpg", input_grey); threshold(input_grey, img_threshold, threadHoldV, 255, CV_THRESH_BINARY); - utils::imwrite("E:/img_threshold.jpg", img_threshold); + // utils::imwrite("E:/img_threshold.jpg", img_threshold); // threshold(input_grey, img_threshold, 5, 255, CV_THRESH_OTSU + // CV_THRESH_BINARY);