解决调整了亮度等参数后,勾选自定义色调曲线,亮度等仍然生效的问题

This commit is contained in:
yangjiaxuan 2023-11-21 18:34:16 +08:00
parent 6cc022191c
commit bc6fdc836d
2 changed files with 10 additions and 1 deletions

View File

@ -5707,6 +5707,13 @@ int hg_scanner::image_configuration(SCANCONF& ic)
{ {
ic.en_sizecheck = false; ic.en_sizecheck = false;
} }
if (custom_gamma_)
{
ic.brightness = 128;
ic.contrast = 4;
ic.gamma = 1.0f;
}
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);

View File

@ -185,7 +185,9 @@ hg_scanner_239::hg_scanner_239(const char* dev_name, int pid,usb_io* io) : hg_sc
#endif #endif
//wait_read_int.notify(); //wait_read_int.notify();
if (firmware_sup_boardTime)
update_boarddatetime(); update_boarddatetime();
status_ = SCANNER_ERR_OK; status_ = SCANNER_ERR_OK;
} }
hg_scanner_239::~hg_scanner_239() hg_scanner_239::~hg_scanner_239()