From a9e9899319e2a5e2ddf14fc4364441677267328b Mon Sep 17 00:00:00 2001 From: 13038267101 Date: Fri, 12 Jan 2024 16:43:16 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E9=94=90=E5=8C=96=20?= =?UTF-8?q?=E5=9C=A8=E9=BB=91=E7=99=BD=E4=B9=8B=E5=89=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hgdriver/hgdev/hg_scanner.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/hgdriver/hgdev/hg_scanner.cpp b/hgdriver/hgdev/hg_scanner.cpp index 9a8dd1d..99cb52d 100644 --- a/hgdriver/hgdev/hg_scanner.cpp +++ b/hgdriver/hgdev/hg_scanner.cpp @@ -5409,6 +5409,12 @@ bool hg_scanner::image_process(std::shared_ptr& buffer, uint32_t id (this->*dump_img_)(ImagePrc_pHandle_, "nosieDetach"); } + if ((img_conf_.sharpen) && (pid_ != 0x239 && pid_ != 0x439)) + { + hg_imgproc::sharpenType(ImagePrc_pHandle_); + (this->*dump_img_)(ImagePrc_pHandle_, "sharpenType"); + } + if ((img_conf_.pixtype == COLOR_MODE_BLACK_WHITE) && (pid_ != 0x239 && pid_ != 0x439)) { hg_imgproc::errorextention(ImagePrc_pHandle_, bw_threshold_); @@ -5422,11 +5428,6 @@ bool hg_scanner::image_process(std::shared_ptr& buffer, uint32_t id (this->*dump_img_)(ImagePrc_pHandle_, "multi_out_red"); } - if ((img_conf_.sharpen) && (pid_ != 0x239 && pid_ != 0x439)) - { - hg_imgproc::sharpenType(ImagePrc_pHandle_); - (this->*dump_img_)(ImagePrc_pHandle_, "sharpenType"); - } if (image_prc_param_.bits.split) //239 {