解决去除摩尔纹,300dpi及以上时会提示不支持的问题

This commit is contained in:
yangjiaxuan 2023-11-23 11:11:07 +08:00
parent a65e1455b5
commit ff3a782f4e
2 changed files with 1 additions and 7 deletions

View File

@ -2301,12 +2301,6 @@ int hg_scanner::setting_is_permeate_lv(void* data, long* len)
}
int hg_scanner::setting_remove_morr(void* data, long* len)
{
if (resolution_ > 300 )
{
image_prc_param_.bits.remove_txtture = image_prc_param_.bits.remove_morr = *((bool*)data) = false;
return SCANNER_ERR_DEVICE_NOT_SUPPORT;
}
image_prc_param_.bits.remove_morr = *((bool*)data);
return SCANNER_ERR_OK;
}

View File

@ -609,7 +609,7 @@ int hg_scanner_300::writedown_device_configuration(bool type,setting_hardware::H
VLOG_MINI_1(LOG_LEVEL_WARNING, "writedown_device_configuration is_quality_ is .(%d)\n", is_quality_)
d->params_3288.dpi = 1;
}
if (image_prc_param_.bits.remove_morr && firmware_sup_morr_)
if (image_prc_param_.bits.remove_morr && firmware_sup_morr_ && resolution_ < 500)
{
d->params_3288.moire = true;
}