From bc6fdc836d939c3a9ea0780ce3f9108c46318666 Mon Sep 17 00:00:00 2001 From: yangjiaxuan <171295266@qq.com> Date: Tue, 21 Nov 2023 18:34:16 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E8=B0=83=E6=95=B4=E4=BA=86?= =?UTF-8?q?=E4=BA=AE=E5=BA=A6=E7=AD=89=E5=8F=82=E6=95=B0=E5=90=8E=EF=BC=8C?= =?UTF-8?q?=E5=8B=BE=E9=80=89=E8=87=AA=E5=AE=9A=E4=B9=89=E8=89=B2=E8=B0=83?= =?UTF-8?q?=E6=9B=B2=E7=BA=BF=EF=BC=8C=E4=BA=AE=E5=BA=A6=E7=AD=89=E4=BB=8D?= =?UTF-8?q?=E7=84=B6=E7=94=9F=E6=95=88=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hgdriver/hgdev/hg_scanner.cpp | 7 +++++++ hgdriver/hgdev/hg_scanner_239.cpp | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/hgdriver/hgdev/hg_scanner.cpp b/hgdriver/hgdev/hg_scanner.cpp index 05a6b62..d03aa03 100644 --- a/hgdriver/hgdev/hg_scanner.cpp +++ b/hgdriver/hgdev/hg_scanner.cpp @@ -5707,6 +5707,13 @@ int hg_scanner::image_configuration(SCANCONF& ic) { ic.en_sizecheck = false; } + if (custom_gamma_) + { + ic.brightness = 128; + ic.contrast = 4; + ic.gamma = 1.0f; + } + 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 30ad788..1904a82 100644 --- a/hgdriver/hgdev/hg_scanner_239.cpp +++ b/hgdriver/hgdev/hg_scanner_239.cpp @@ -185,7 +185,9 @@ hg_scanner_239::hg_scanner_239(const char* dev_name, int pid,usb_io* io) : hg_sc #endif //wait_read_int.notify(); - update_boarddatetime(); + if (firmware_sup_boardTime) + update_boarddatetime(); + status_ = SCANNER_ERR_OK; } hg_scanner_239::~hg_scanner_239()