调整300画质优先,自定义扫描区域,图像被拉伸的问题

This commit is contained in:
yangjiaxuan 2023-08-14 14:01:28 +08:00
parent f768977515
commit 4f83c8941c
1 changed files with 8 additions and 6 deletions

View File

@ -4735,6 +4735,14 @@ void hg_scanner::image_process(std::shared_ptr<tiny_buffer>& 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<tiny_buffer>& 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
{