diff --git a/hgdriver/hgdev/hg_scanner.cpp b/hgdriver/hgdev/hg_scanner.cpp index 98f5fbd..f7effaf 100644 --- a/hgdriver/hgdev/hg_scanner.cpp +++ b/hgdriver/hgdev/hg_scanner.cpp @@ -5661,6 +5661,17 @@ int hg_scanner::image_configuration(SCANCONF& ic) { 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; 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); diff --git a/hgdriver/hgdev/hg_scanner_239.cpp b/hgdriver/hgdev/hg_scanner_239.cpp index 8bbe65b..4ea6e82 100644 --- a/hgdriver/hgdev/hg_scanner_239.cpp +++ b/hgdriver/hgdev/hg_scanner_239.cpp @@ -667,17 +667,6 @@ int hg_scanner_239::writedown_image_configuration(void) ic.contrast = (contrast_ - 4) * 333.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);