From 4f83c8941c53303d1fa1384c8d4a7172f6f280ce Mon Sep 17 00:00:00 2001 From: yangjiaxuan <171295266@qq.com> Date: Mon, 14 Aug 2023 14:01:28 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4300=E7=94=BB=E8=B4=A8?= =?UTF-8?q?=E4=BC=98=E5=85=88=EF=BC=8C=E8=87=AA=E5=AE=9A=E4=B9=89=E6=89=AB?= =?UTF-8?q?=E6=8F=8F=E5=8C=BA=E5=9F=9F=EF=BC=8C=E5=9B=BE=E5=83=8F=E8=A2=AB?= =?UTF-8?q?=E6=8B=89=E4=BC=B8=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hgdriver/hgdev/hg_scanner.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/hgdriver/hgdev/hg_scanner.cpp b/hgdriver/hgdev/hg_scanner.cpp index 5806af3..a5a29d4 100644 --- a/hgdriver/hgdev/hg_scanner.cpp +++ b/hgdriver/hgdev/hg_scanner.cpp @@ -4735,6 +4735,14 @@ void hg_scanner::image_process(std::shared_ptr& buffer, uint32_t id (this->*dump_img_)(ImagePrc_pHandle_, "auto_crop"); } + if (is_quality_ == IMG_SPEED && resolution_ >= 300)//239 + { + VLOG_MINI_1(LOG_LEVEL_DEBUG_INFO, "set resolution_ is :%d\n", resolution_) + err = hg_imgproc::quality(ImagePrc_pHandle_, resolution_); + + (this->*dump_img_)(ImagePrc_pHandle_, "quality"); + } + if (img_conf_.is_colorcast && pid_ != 0x239 && pid_ != 0x439) { ret = hg_imgproc::color_cast_correction(ImagePrc_pHandle_); @@ -4876,13 +4884,7 @@ void hg_scanner::image_process(std::shared_ptr& buffer, uint32_t id (this->*dump_img_)(ImagePrc_pHandle_, "ocr_auto_txtdirect"); } - if (is_quality_ == IMG_SPEED && resolution_ >= 300)//239 - { - VLOG_MINI_1(LOG_LEVEL_DEBUG_INFO, "set resolution_ is :%d\n", resolution_) - err = hg_imgproc::quality(ImagePrc_pHandle_, resolution_); - (this->*dump_img_)(ImagePrc_pHandle_, "quality"); - } if (is_multiout)//239 {