From 55df2fef9a4a19476a5665f7f19f6c745e68d82a Mon Sep 17 00:00:00 2001 From: 13038267101 Date: Tue, 13 Sep 2022 11:48:34 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A9=BA=E6=A0=BC=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hgdriver/hgdev/common_setting.h | 90 ++++++++++++++++----------------- 1 file changed, 45 insertions(+), 45 deletions(-) diff --git a/hgdriver/hgdev/common_setting.h b/hgdriver/hgdev/common_setting.h index 6e55215..5703768 100644 --- a/hgdriver/hgdev/common_setting.h +++ b/hgdriver/hgdev/common_setting.h @@ -781,53 +781,53 @@ typedef struct tagHhardware_Params // typedef struct _scan_conf { - unsigned char papertype; /**< the current paper source ADF or Flatbed*/ + unsigned char papertype; /**< the current paper source ADF or Flatbed>*/ unsigned char paperAlign; - unsigned char en_sizecheck; /**< 尺寸检测*/ - float imageRotateDegree; /**< 旋转 */ + unsigned char en_sizecheck; /**< 尺寸检测>*/ + float imageRotateDegree; /**< 旋转>*/ unsigned char is_duplex; /**< True to use duplex false for simplex, ignored if flatbed*/ - unsigned char en_fold; /**<对折*/ - int pixtype; /**< type of pixels to transfer image as */ - int automaticcolor; /**<顔色自動識別*/ - int automaticcolortype; /**<顔色自動識別后非彩色上傳類型*/ - //ScanRect scanrect; - float resolution_dst; /**< horizontal resolution */ + unsigned char en_fold; /**< 对折>*/ + int pixtype; /**< type of pixels to transfer image as>*/ + int automaticcolor; /**< 顔色自動識別>*/ + int automaticcolortype; /**< 顔色自動識別后非彩色上傳類型>*/ + + float resolution_dst; /**< horizontal resolution>*/ float resolution_native; - float gamma; /**< Gamma */ - float contrast; /**< Contrast */ - float brightness; /**< Brightness */ - float threshold; /**< Threshold */ - unsigned char is_autocontrast; /**< 自动对比度*/ - unsigned char is_autocrop; /**< 自动裁切*/ - unsigned char is_autodiscradblank_normal; /**< 自动丢弃空白页通用*/ - int discardblank_percent; /**<跳过空白页阀值*/ - unsigned char is_autodiscradblank_vince; /**自动丢弃空白页发票*/ - unsigned char is_switchfrontback; /**交换正反面*/ - unsigned char autodescrew; /**< 自动纠偏*/ - unsigned char multi_output_red; /*多流输出*/ - unsigned char hsvcorrect; /**<答题卡除红*/ - unsigned char filter; /**< 除色*/ - unsigned char sharpen; /**< 锐化*/ - unsigned char enhance_color; /**< 颜色增强*/ - unsigned char fillbackground; /**< 填黑框*/ - bool is_convex; /**< 填黑框模式,true为凸多边形填充,false为凹多边形填充,默认true*/ - int noise; /**< 除噪像素,能够消除noise宽度的背景竖条纹干扰,默认40*/ - int indent; /**< 轮廓缩进,裁剪、纠偏或者黑底填充时,对探索到的纸张轮廓进行缩进indent像素,默认5*/ - int AutoCrop_threshold; /**< 自动裁剪二值化阈值,取值范围(0, 255),默认40*/ - unsigned short scannum; /**< 扫描张数*/ - unsigned char is_backrotate180; /**< 背面旋转180*/ - unsigned char is_dogeardetection; /**<折角检测*/ - HardwareCaps hardwarecaps; /**< 硬件扫描参数*/ - FillHole fillhole; /**< 填穿孔*/ - DetachNoise detachnoise; /**< 黑白降噪*/ - unsigned char is_autotext; /**< 自动文本方向识别*/ + float gamma; /**< Gamma>*/ + float contrast; /**< Contrast>*/ + float brightness; /**< Brightness>*/ + float threshold; /**< Threshold>*/ + unsigned char is_autocontrast; /**< 自动对比度>*/ + unsigned char is_autocrop; /**< 自动裁切>*/ + unsigned char is_autodiscradblank_normal; /**< 自动丢弃空白页通用>*/ + int discardblank_percent; /**< 跳过空白页阀值*/ + unsigned char is_autodiscradblank_vince; /**< 自动丢弃空白页发票>*/ + unsigned char is_switchfrontback; /**< 交换正反面>*/ + unsigned char autodescrew; /**< 自动纠偏>*/ + unsigned char multi_output_red; /**< 多流输出>*/ + unsigned char hsvcorrect; /**< 答题卡除红>*/ + unsigned char filter; /**< 除色>*/ + unsigned char sharpen; /**< 锐化>*/ + unsigned char enhance_color; /**< 颜色增强>*/ + unsigned char fillbackground; /**< 填黑框>*/ + bool is_convex; /**< 填黑框模式,true为凸多边形填充,false为凹多边形填充,默认true>*/ + int noise; /**< 除噪像素,能够消除noise宽度的背景竖条纹干扰,默认40>*/ + int indent; /**< 轮廓缩进,裁剪、纠偏或者黑底填充时,对探索到的纸张轮廓进行缩进indent像素,默认5>*/ + int AutoCrop_threshold; /**< 自动裁剪二值化阈值,取值范围(0, 255),默认40>*/ + unsigned short scannum; /**< 扫描张数>*/ + unsigned char is_backrotate180; /**< 背面旋转180>*/ + unsigned char is_dogeardetection; /**< 折角检测>*/ + HardwareCaps hardwarecaps; /**< 硬件扫描参数>*/ + FillHole fillhole; /**< 填穿孔>*/ + DetachNoise detachnoise; /**< 黑白降噪>*/ + unsigned char is_autotext; /**< 自动文本方向识别>*/ bool isfillcolor; /**< 自动裁切颜色填充>*/ int refuseInflow; /**< 防止渗透>*/ int colorCorrection; /**< 色彩校正>*/ int removeMorr; /**< 去除摩尔纹>*/ - int errorExtention; /** < 错误扩散>*/ - int textureRemove; /** < 除网纹>*/ - int splitImage; /** < 图像拆分>*/ + int errorExtention; /**< 错误扩散>*/ + int textureRemove; /**< 除网纹>*/ + int splitImage; /**< 图像拆分>*/ CropRect cropRect; /**< 自定义裁切>*/ MultiOutput multiOutput; /**< 多流输出>*/ bool normalCrop; /**< 自动裁切深色样张>*/ @@ -835,11 +835,11 @@ typedef struct _scan_conf bool fadeback; /**< 背景除色>*/ int fadebackrange; /**< 背景除色阈值>*/ bool isuoloadexceptionimage; /**< 是否保留双张出图>*/ - int fillholeratio_up; /**<上侧除穿孔比率,0为不除。[0,50],added on 2022-09-12>*/ - int fillholeratio_down; /**<下侧除穿孔比率,0为不除。[0,50],added on 2022-09-12>*/ - int fillholeratio_left; /**<左侧除穿孔比率,0为不除。[0,50],added on 2022-09-12>*/ - int fillholeratio_right; /**<右侧除穿孔比率,0为不除。[0,50],added on 2022-09-12>*/ - uint32_t reserve[1024]; /**<预留4096字节做协议扩展*/ + int fillholeratio_up; /**< 上侧除穿孔比率,0为不除。[0,50],added on 2022-09-12>*/ + int fillholeratio_down; /**< 下侧除穿孔比率,0为不除。[0,50],added on 2022-09-12>*/ + int fillholeratio_left; /**< 左侧除穿孔比率,0为不除。[0,50],added on 2022-09-12>*/ + int fillholeratio_right; /**< 右侧除穿孔比率,0为不除。[0,50],added on 2022-09-12>*/ + uint32_t reserve[1024]; /**< 预留4096字节做协议扩展*/ }SCANCONF ,*LPSCANCONF; //图像参数设置 -OVER