parent
fea65386e8
commit
3c520920d2
|
@ -5161,6 +5161,7 @@ void hg_scanner::image_process(std::shared_ptr<tiny_buffer>& buffer, uint32_t id
|
||||||
void* buf = NULL;
|
void* buf = NULL;
|
||||||
|
|
||||||
hg_imgproc::load_buffer(ImagePrc_pHandle_, buffer);
|
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_);
|
hg_imgproc::decode(ImagePrc_pHandle_, pid_, &img_conf_, ¶m, correction_image_map_);
|
||||||
(this->*dump_img_)(ImagePrc_pHandle_, "decode");
|
(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_);
|
ret = hg_imgproc::color_cast_correction(ImagePrc_pHandle_);
|
||||||
(this->*dump_img_)(ImagePrc_pHandle_, "color_cast_correction");
|
(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_);
|
ret = hg_imgproc::discardBlank(ImagePrc_pHandle_);
|
||||||
(this->*dump_img_)(ImagePrc_pHandle_, "discardBlank");
|
(this->*dump_img_)(ImagePrc_pHandle_, "discardBlank");
|
||||||
|
|
Loading…
Reference in New Issue