oldwebscan完善镜头脏污检测协议
This commit is contained in:
parent
43c4a0b731
commit
6bfd7a87da
|
@ -203,6 +203,7 @@ void HG_Init()
|
|||
m_params.ImageProcess.BackRotate180 = 0;
|
||||
m_params.ImageProcess.SplitImage = 0;
|
||||
m_params.ImageProcess.DiscardBlankThre = 50;
|
||||
m_params.ImageProcess.lensDirty = 0;
|
||||
m_params.HardwareParam.bindingDetection = 0;
|
||||
m_params.HardwareParam.capturepixtype = 48;
|
||||
m_params.HardwareParam.doubleFeedDetection = 1;
|
||||
|
@ -450,6 +451,8 @@ int GetDeviceParam(HG_Scanner_Handle pScanner)
|
|||
}
|
||||
else if (devParam->option == HGLIB_OPTION_NAME_TGKBYLMD && devParam->type == HGLIB_OPTION_VALUETYPE_INT)
|
||||
m_params.ImageProcess.DiscardBlankThre = devParam->intValue;
|
||||
else if (devParam->option == HGLIB_OPTION_NAME_JTZWJC && devParam->type == HGLIB_OPTION_VALUETYPE_BOOL)
|
||||
m_params.ImageProcess.lensDirty = devParam->boolValue;
|
||||
else if (devParam->option == HGLIB_OPTION_NAME_FBL && devParam->type == HGLIB_OPTION_VALUETYPE_INT)
|
||||
m_params.Resolution = devParam->intValue;
|
||||
else if (devParam->option == HGLIB_OPTION_NAME_JHZFM && devParam->type == HGLIB_OPTION_VALUETYPE_BOOL)
|
||||
|
@ -697,6 +700,9 @@ int SetDeviceParam(HG_Scanner_Handle pScanner)
|
|||
intValue = m_params.ImageProcess.DiscardBlankThre;
|
||||
HGLib_SetDeviceParam((HGLibDevice)pScanner, HGLIB_OPTION_NAME_TGKBYLMD, &intValue);
|
||||
|
||||
boolValue = m_params.ImageProcess.lensDirty;
|
||||
HGLib_SetDeviceParam((HGLibDevice)pScanner, HGLIB_OPTION_NAME_JTZWJC, &boolValue);
|
||||
|
||||
intValue = m_params.Resolution;
|
||||
HGLib_SetDeviceParam((HGLibDevice)pScanner, HGLIB_OPTION_NAME_FBL, &intValue);
|
||||
|
||||
|
|
|
@ -270,6 +270,7 @@ extern "C" {
|
|||
int BackRotate180; /* 背面旋转180 */
|
||||
int SplitImage; /* 图像拆分 */
|
||||
int DiscardBlankThre; /* 跳过空白页阈值*/
|
||||
bool lensDirty; /* 镜头脏污检测*/
|
||||
}HG_IMAGEPROCESS;
|
||||
|
||||
/* 扫描参数 */
|
||||
|
|
Loading…
Reference in New Issue