From 8b06b1cbf112d55307ea8a6efe711db4e7506d89 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期二, 07 三月 2023 10:13:47 +0800 Subject: [PATCH] 'GPU内核方法优化' --- ConsoleApplication/ImgUtil.cpp | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ConsoleApplication/ImgUtil.cpp b/ConsoleApplication/ImgUtil.cpp index 501a450..4c3f27e 100644 --- a/ConsoleApplication/ImgUtil.cpp +++ b/ConsoleApplication/ImgUtil.cpp @@ -613,7 +613,7 @@ startIndex = i; } - bool full = ImgDivider::isColFull(img, i, contentStartRow); + bool full = ImgDivider::isColFull(img, i, contentStartRow, contentStartRow+50,2); if (full) { if (startf < 0) { @@ -670,7 +670,7 @@ //总共的数据数量 int dataCount = 0; for (int i = contentStartRow;i < rows;i++) { - bool empty = ImgDivider::isRowEmpty(img, i, startCol, endCol, 3, 64) && ImgDivider::isRowEmpty(img, i, endCol - 20, endCol, 1, 64); + bool empty = ImgDivider::isRowEmpty(img, i, startCol, endCol, 3, _IMG_BINARY_THRESHOLD) && ImgDivider::isRowEmpty(img, i, endCol - 20, endCol, 1, _IMG_BINARY_THRESHOLD); if (empty) { if (startf > -1 && endf > -1) { //内容坐标 -- Gitblit v1.8.0