调整发条跳过阈值 和除色问题
This commit is contained in:
parent
be2b831795
commit
5642bfdecb
|
@ -801,6 +801,18 @@ int hg_scanner_239::writedown_device_configuration(HGSCANCONF *dev_conf)
|
||||||
{
|
{
|
||||||
dev_conf->g200params.color = 1;
|
dev_conf->g200params.color = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(image_prc_param_.bits.rid_color != RID_COLOR_NONE
|
||||||
|
&& (image_prc_param_.bits.color_mode == COLOR_MODE_256_GRAY || image_prc_param_.bits.color_mode == COLOR_MODE_BLACK_WHITE))
|
||||||
|
{
|
||||||
|
dev_conf->g200params.color = 1;
|
||||||
|
}
|
||||||
|
else if (image_prc_param_.bits.rid_color == RID_COLOR_NONE
|
||||||
|
&& (image_prc_param_.bits.color_mode == COLOR_MODE_256_GRAY || image_prc_param_.bits.color_mode == COLOR_MODE_BLACK_WHITE))
|
||||||
|
{
|
||||||
|
dev_conf->g200params.color = 0;
|
||||||
|
}
|
||||||
|
|
||||||
if (image_prc_param_.bits.paper == PAPER_AUTO_MATCH
|
if (image_prc_param_.bits.paper == PAPER_AUTO_MATCH
|
||||||
|| image_prc_param_.bits.paper == PAPER_MAX_SIZE
|
|| image_prc_param_.bits.paper == PAPER_MAX_SIZE
|
||||||
|| image_prc_param_.bits.paper == PAPER_MAX_SIZE_CLIP
|
|| image_prc_param_.bits.paper == PAPER_MAX_SIZE_CLIP
|
||||||
|
@ -888,7 +900,7 @@ int hg_scanner_239::writedown_image_configuration(void)
|
||||||
//ic.multi_output_red = image_prc_param_.bits.rid_red; //必须屏蔽,否则超时,未知错误不可描述。
|
//ic.multi_output_red = image_prc_param_.bits.rid_red; //必须屏蔽,否则超时,未知错误不可描述。
|
||||||
ic.hsvcorrect = image_prc_param_.bits.rid_answer_red;
|
ic.hsvcorrect = image_prc_param_.bits.rid_answer_red;
|
||||||
ic.sharpen = image_prc_param_.bits.sharpen;
|
ic.sharpen = image_prc_param_.bits.sharpen;
|
||||||
ic.enhance_color = image_prc_param_.bits.rid_color;
|
//ic.enhance_color = image_prc_param_.bits.rid_color; //加这个会有问题
|
||||||
ic.fillbackground = image_prc_param_.bits.erase_black_frame;
|
ic.fillbackground = image_prc_param_.bits.erase_black_frame;
|
||||||
ic.is_convex = (image_prc_param_.bits.fill_background == FILL_BKG_CONVEX_POLYGON);
|
ic.is_convex = (image_prc_param_.bits.fill_background == FILL_BKG_CONVEX_POLYGON);
|
||||||
if (ic.resolution_dst == 300)
|
if (ic.resolution_dst == 300)
|
||||||
|
|
|
@ -783,7 +783,8 @@ namespace hg_imgproc
|
||||||
|
|
||||||
double threshold = 40;
|
double threshold = 40;
|
||||||
int edge = 150;
|
int edge = 150;
|
||||||
|
if (img_conf_.is_autodiscradblank_vince)
|
||||||
|
img_conf_.discardblank_percent *= 1.5;
|
||||||
CImageApplyDiscardBlank(threshold,edge,img_conf_.discardblank_percent);
|
CImageApplyDiscardBlank(threshold,edge,img_conf_.discardblank_percent);
|
||||||
|
|
||||||
for (size_t i = 0; i < mats.size(); ++i)
|
for (size_t i = 0; i < mats.size(); ++i)
|
||||||
|
|
Loading…
Reference in New Issue