From 3c520920d23bf9f2369e3efd7c2bf4a762b821a1 Mon Sep 17 00:00:00 2001 From: yangjiaxuan <171295266@qq.com> Date: Tue, 5 Dec 2023 11:38:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=8C=E5=BC=A0=E6=A0=A1=E9=AA=8C=E5=92=8C?= =?UTF-8?q?=E8=B7=B3=E8=BF=87=E7=A9=BA=E7=99=BD=E9=A1=B5=E5=90=8C=E6=97=B6?= =?UTF-8?q?=E5=BC=80=E5=90=AF=EF=BC=9B=20=E5=BD=93=E5=8F=8C=E5=BC=A0?= =?UTF-8?q?=E8=A2=AB=E8=AF=86=E5=88=AB=E4=B8=BA=E7=A9=BA=E7=99=BD=E9=A1=B5?= =?UTF-8?q?=E6=97=B6=EF=BC=8C=E4=B8=8D=E5=81=9A=E8=B7=B3=E8=BF=87=E7=A9=BA?= =?UTF-8?q?=E7=99=BD=E9=A1=B5=E5=A4=84=E7=90=86=EF=BC=8C=E4=BC=98=E5=85=88?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=E5=8F=8C=E5=BC=A0=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hgdriver/hgdev/hg_scanner.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hgdriver/hgdev/hg_scanner.cpp b/hgdriver/hgdev/hg_scanner.cpp index 3b34b04..caeb1bc 100644 --- a/hgdriver/hgdev/hg_scanner.cpp +++ b/hgdriver/hgdev/hg_scanner.cpp @@ -5161,6 +5161,7 @@ void hg_scanner::image_process(std::shared_ptr& buffer, uint32_t id void* buf = NULL; hg_imgproc::load_buffer(ImagePrc_pHandle_, buffer); + int imgStatus = buffer->get_image_statu(); hg_imgproc::decode(ImagePrc_pHandle_, pid_, &img_conf_, ¶m, correction_image_map_); (this->*dump_img_)(ImagePrc_pHandle_, "decode"); @@ -5238,7 +5239,8 @@ void hg_scanner::image_process(std::shared_ptr& buffer, uint32_t id ret = hg_imgproc::color_cast_correction(ImagePrc_pHandle_); (this->*dump_img_)(ImagePrc_pHandle_, "color_cast_correction"); } - if ((img_conf_.is_autodiscradblank_normal || img_conf_.is_autodiscradblank_vince || img_conf_.detect_size_diascard_blank) && (pid_ != 0x239 && pid_ != 0x439)) + if ((img_conf_.is_autodiscradblank_normal || img_conf_.is_autodiscradblank_vince || img_conf_.detect_size_diascard_blank) && (pid_ != 0x239 && pid_ != 0x439) + && (imgStatus != (int)IMG_STATUS_DOUBLE)) //add-2023.12.5: If the paper is blank, do not skip it. { ret = hg_imgproc::discardBlank(ImagePrc_pHandle_); (this->*dump_img_)(ImagePrc_pHandle_, "discardBlank");