From 54427b3b67e49c9590717f4bacba0d435252d169 Mon Sep 17 00:00:00 2001 From: 13038267101 Date: Mon, 3 Jul 2023 15:48:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E6=8A=98=E5=92=8C=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E4=BC=98=E5=85=88=E7=BA=A7=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hgdriver/hgdev/hg_scanner.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/hgdriver/hgdev/hg_scanner.cpp b/hgdriver/hgdev/hg_scanner.cpp index a24137b..dceeb01 100644 --- a/hgdriver/hgdev/hg_scanner.cpp +++ b/hgdriver/hgdev/hg_scanner.cpp @@ -4623,6 +4623,11 @@ void hg_scanner::image_process(std::shared_ptr& buffer, uint32_t id (this->*dump_img_)(ImagePrc_pHandle_, "colorCorrection"); } + if (((img_conf_.en_fold && pid_ != 0x239 && pid_ != 0x439))) + { + hg_imgproc::fold(ImagePrc_pHandle_); + (this->*dump_img_)(ImagePrc_pHandle_, "fold"); + } if (((img_conf_.imageRotateDegree != TEXT_DIRECTION_0 || img_conf_.is_backrotate180) && (!img_conf_.is_autotext)) && (pid_ != 0x239 && pid_ != 0x439)) { @@ -4655,11 +4660,6 @@ void hg_scanner::image_process(std::shared_ptr& buffer, uint32_t id (this->*dump_img_)(ImagePrc_pHandle_, "errorextention"); } - if (((img_conf_.en_fold && pid_ != 0x239 && pid_ != 0x439))) - { - hg_imgproc::fold(ImagePrc_pHandle_); - (this->*dump_img_)(ImagePrc_pHandle_, "fold"); - } if (img_conf_.multi_output_red && img_conf_.pixtype == COLOR_MODE_24_BITS)//239 {