双张校验和跳过空白页同时开启;

当双张被识别为空白页时,不做跳过空白页处理,优先提示双张校验
This commit is contained in:
yangjiaxuan 2023-12-05 11:38:25 +08:00
parent fea65386e8
commit 3c520920d2
1 changed files with 3 additions and 1 deletions

View File

@ -5161,6 +5161,7 @@ void hg_scanner::image_process(std::shared_ptr<tiny_buffer>& 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_, &param, correction_image_map_);
(this->*dump_img_)(ImagePrc_pHandle_, "decode");
@ -5238,7 +5239,8 @@ void hg_scanner::image_process(std::shared_ptr<tiny_buffer>& 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");