选择不支持尺寸检测的纸张尺寸时,固件协议上主动将尺寸检测设为false
This commit is contained in:
parent
c8354cf858
commit
57814455dc
|
@ -5661,6 +5661,17 @@ int hg_scanner::image_configuration(SCANCONF& ic)
|
||||||
{
|
{
|
||||||
ic.cropRect.enable = false;
|
ic.cropRect.enable = false;
|
||||||
}
|
}
|
||||||
|
if (image_prc_param_.bits.paper == PAPER_AUTO_MATCH
|
||||||
|
|| image_prc_param_.bits.paper == PAPER_MAX_SIZE
|
||||||
|
|| image_prc_param_.bits.paper == PAPER_MAX_SIZE_CLIP
|
||||||
|
|| image_prc_param_.bits.paper == PAPER_TRIGEMINY
|
||||||
|
|| image_prc_param_.bits.paper == PAPER_16K
|
||||||
|
|| image_prc_param_.bits.paper == PAPER_8K
|
||||||
|
|| image_prc_param_.bits.paper == PAPER_16K_LATERAL
|
||||||
|
)
|
||||||
|
{
|
||||||
|
ic.en_sizecheck = false;
|
||||||
|
}
|
||||||
img_conf_ = ic;
|
img_conf_ = ic;
|
||||||
VLOG_MINI_1(LOG_LEVEL_DEBUG_INFO, "ic.pixtype=%d\r\n", ic.pixtype);
|
VLOG_MINI_1(LOG_LEVEL_DEBUG_INFO, "ic.pixtype=%d\r\n", ic.pixtype);
|
||||||
VLOG_MINI_1(LOG_LEVEL_DEBUG_INFO, "ic.papertype=%d\r\n", ic.papertype);
|
VLOG_MINI_1(LOG_LEVEL_DEBUG_INFO, "ic.papertype=%d\r\n", ic.papertype);
|
||||||
|
|
|
@ -667,17 +667,6 @@ int hg_scanner_239::writedown_image_configuration(void)
|
||||||
ic.contrast = (contrast_ - 4) * 333.0;
|
ic.contrast = (contrast_ - 4) * 333.0;
|
||||||
ic.brightness = (bright_ - 128) * (2000.0 / 254.0);
|
ic.brightness = (bright_ - 128) * (2000.0 / 254.0);
|
||||||
|
|
||||||
if (image_prc_param_.bits.paper == PAPER_AUTO_MATCH
|
|
||||||
|| image_prc_param_.bits.paper == PAPER_MAX_SIZE
|
|
||||||
|| image_prc_param_.bits.paper == PAPER_MAX_SIZE_CLIP
|
|
||||||
|| image_prc_param_.bits.paper == PAPER_TRIGEMINY
|
|
||||||
|| image_prc_param_.bits.paper == PAPER_16K
|
|
||||||
|| image_prc_param_.bits.paper == PAPER_8K
|
|
||||||
|| image_prc_param_.bits.paper == PAPER_16K_LATERAL
|
|
||||||
)
|
|
||||||
{
|
|
||||||
ic.en_sizecheck = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
image_configuration(ic);
|
image_configuration(ic);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue