Don\'t dump tmp files to E:/.

v1.6alpha
Micooz 10 years ago
parent 4f75e35463
commit 366f8c1a42

@ -103,10 +103,10 @@ int CCharsSegment::charsSegment(Mat input, vector<Mat>& resultVec) {
int h = input_grey.rows; int h = input_grey.rows;
Mat tmp = input_grey(Rect(w * 0.1, h * 0.1, w * 0.8, h * 0.8)); Mat tmp = input_grey(Rect(w * 0.1, h * 0.1, w * 0.8, h * 0.8));
int threadHoldV = ThresholdOtsu(tmp); 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); 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 + // threshold(input_grey, img_threshold, 5, 255, CV_THRESH_OTSU +
// CV_THRESH_BINARY); // CV_THRESH_BINARY);

Loading…
Cancel
Save