From f934d8ce852c1606069f8f49e3e93f890fb547bb Mon Sep 17 00:00:00 2001 From: luoliangyi <87842688@qq.com> Date: Wed, 8 Feb 2023 16:18:58 +0800 Subject: [PATCH] =?UTF-8?q?scannerlib=E5=AE=8C=E5=96=84python=20demo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/scannerlib/huagao/test.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/test/scannerlib/huagao/test.py b/test/scannerlib/huagao/test.py index b1b9fdcf..ec6124bc 100644 --- a/test/scannerlib/huagao/test.py +++ b/test/scannerlib/huagao/test.py @@ -160,8 +160,17 @@ Ret = HGLib_ReleaseDeviceParamGroupList(DevParamGroup, DevParamCount) HGLib_SetDeviceParam = Objdll.HGLib_SetDeviceParam HGLib_SetDeviceParam.argtypes = [ctypes.c_void_p, ctypes.c_uint, ctypes.c_void_p] HGLib_SetDeviceParam.restype = ctypes.c_int -DevParam = ctypes.c_int(1) #HGLIB_OPTION_ENUMVALUE_DLSCLX_W -> 不进行多流输出类型 -Ret = HGLib_SetDeviceParam(Device, 1, byref(DevParam)) #见HGLib_SetDeviceParam 头文件接口说明 1 -> HGLIB_OPTION_NAME_DLSC 多流输出 +DevParam = ctypes.c_int(1) #HGLIB_OPTION_ENUMVALUE_DLSCLX_W 无 +Ret = HGLib_SetDeviceParam(Device, 1, byref(DevParam)) #HGLIB_OPTION_NAME_DLSC 多流输出 + +DevParam = ctypes.c_int(300) +Ret = HGLib_SetDeviceParam(Device, 27, byref(DevParam)) #HGLIB_OPTION_NAME_FBL 分辨率 + +DevParam = ctypes.c_int(1) +Ret = HGLib_SetDeviceParam(Device, 37, byref(DevParam)) #HGLIB_OPTION_NAME_XCHK 消除黑框 + +DevParam = ctypes.c_int(54) #HGLIB_OPTION_ENUMVALUE_BJTCFS_ADBX 凸多边形 +Ret = HGLib_SetDeviceParam(Device, 42, byref(DevParam)) #HGLIB_OPTION_NAME_BJTCFS 背景填充方式 #扫描事件回调