From 08577df257256cdcb8784cfe8f3e26919a1d7e4f Mon Sep 17 00:00:00 2001 From: lovelyyoung <1002639516@qq.com> Date: Thu, 19 Mar 2020 21:11:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9C=80=E5=A4=A7=E6=89=AB?= =?UTF-8?q?=E6=8F=8F=E5=B0=BA=E5=AF=B8=E8=87=AA=E5=8A=A8=E8=A3=81=E5=88=87?= =?UTF-8?q?=20=E9=9D=9E200dpi=E4=B8=8B=E5=87=BA=E5=9B=BE=E7=95=B8=E5=8F=98?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- huagao/Device/ImageMatQueue.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/huagao/Device/ImageMatQueue.cpp b/huagao/Device/ImageMatQueue.cpp index e7543af3..98cb9bae 100644 --- a/huagao/Device/ImageMatQueue.cpp +++ b/huagao/Device/ImageMatQueue.cpp @@ -150,7 +150,10 @@ void ImageMatQueue::setparam(const GScanCap& param) if (param.resolution_dst != 200.0) { CImageApplyResize* apply; - if (param.is_autocrop) { + bool islongcustomcrop = false; + if (param.papertype == TwSS::USStatement) + islongcustomcrop = true; + if (param.is_autocrop|| islongcustomcrop) { double ratio = param.resolution_dst / 200.0; apply = new CImageApplyResize(CImageApplyResize::ResizeType::RATIO, cv::Size(0, 0), ratio, ratio); }