diff --git a/image/tmp/debug_char_auxRoi_0.jpg b/image/tmp/debug_char_auxRoi_0.jpg new file mode 100644 index 0000000..d36f331 Binary files /dev/null and b/image/tmp/debug_char_auxRoi_0.jpg differ diff --git a/image/tmp/debug_char_auxRoi_1.jpg b/image/tmp/debug_char_auxRoi_1.jpg new file mode 100644 index 0000000..f03bb2f Binary files /dev/null and b/image/tmp/debug_char_auxRoi_1.jpg differ diff --git a/image/tmp/debug_char_auxRoi_2.jpg b/image/tmp/debug_char_auxRoi_2.jpg new file mode 100644 index 0000000..24ba7fd Binary files /dev/null and b/image/tmp/debug_char_auxRoi_2.jpg differ diff --git a/image/tmp/debug_char_auxRoi_3.jpg b/image/tmp/debug_char_auxRoi_3.jpg new file mode 100644 index 0000000..33957d8 Binary files /dev/null and b/image/tmp/debug_char_auxRoi_3.jpg differ diff --git a/image/tmp/debug_char_auxRoi_4.jpg b/image/tmp/debug_char_auxRoi_4.jpg new file mode 100644 index 0000000..1bd7ca6 Binary files /dev/null and b/image/tmp/debug_char_auxRoi_4.jpg differ diff --git a/image/tmp/debug_char_auxRoi_5.jpg b/image/tmp/debug_char_auxRoi_5.jpg new file mode 100644 index 0000000..deae525 Binary files /dev/null and b/image/tmp/debug_char_auxRoi_5.jpg differ diff --git a/image/tmp/debug_char_auxRoi_6.jpg b/image/tmp/debug_char_auxRoi_6.jpg new file mode 100644 index 0000000..c50727f Binary files /dev/null and b/image/tmp/debug_char_auxRoi_6.jpg differ diff --git a/image/tmp/debug_char_clearLiuDing.jpg b/image/tmp/debug_char_clearLiuDing.jpg new file mode 100644 index 0000000..f4c9092 Binary files /dev/null and b/image/tmp/debug_char_clearLiuDing.jpg differ diff --git a/image/tmp/debug_char_threshold.jpg b/image/tmp/debug_char_threshold.jpg new file mode 100644 index 0000000..f962875 Binary files /dev/null and b/image/tmp/debug_char_threshold.jpg differ diff --git a/image/tmp/debug_chineseMat.jpg b/image/tmp/debug_chineseMat.jpg new file mode 100644 index 0000000..ff8d443 Binary files /dev/null and b/image/tmp/debug_chineseMat.jpg differ diff --git a/image/tmp/debug_specMat.jpg b/image/tmp/debug_specMat.jpg new file mode 100644 index 0000000..fc705d6 Binary files /dev/null and b/image/tmp/debug_specMat.jpg differ diff --git a/run_accuracy.txt b/run_accuracy.txt index c18fb8f..12b782a 100644 --- a/run_accuracy.txt +++ b/run_accuracy.txt @@ -401,3 +401,11 @@ 总图片数:120张, 未识出图片:7张, 定位率:94.1667% 平均字符差距:1.97345个, 完全匹配数:29张, 完全匹配率:25.6637% 总时间:82秒, 平均执行时间:0.683333秒 +2015-03-14 14:36:08 +总图片数:120张, 未识出图片:7张, 定位率:94.1667% +平均字符差距:1.97345个, 完全匹配数:29张, 完全匹配率:25.6637% +总时间:81秒, 平均执行时间:0.675秒 +2015-03-14 14:47:56 +总图片数:120张, 未识出图片:7张, 定位率:94.1667% +平均字符差距:1.97345个, 完全匹配数:29张, 完全匹配率:25.6637% +总时间:389秒, 平均执行时间:3.24167秒 diff --git a/src/core/chars_segment.cpp b/src/core/chars_segment.cpp index e9e83b2..c05cb7e 100644 --- a/src/core/chars_segment.cpp +++ b/src/core/chars_segment.cpp @@ -291,6 +291,11 @@ int CCharsSegment::charsSegment(Mat input, vector& resultVec) else threshold(input, img_threshold, 10, 255, CV_THRESH_OTSU+CV_THRESH_BINARY_INV); + imshow("img_threshold", img_threshold); + waitKey(0); + destroyWindow("img_threshold"); + + if(m_debug) { stringstream ss(stringstream::in | stringstream::out);