解决多流输出时黑白阈值不生效的问题;BUG-816
This commit is contained in:
parent
800fca0a0e
commit
bfe3819be3
|
@ -5438,7 +5438,7 @@ void hg_scanner::image_process(std::shared_ptr<tiny_buffer>& buffer, uint32_t id
|
|||
if (is_multiout)//239
|
||||
{
|
||||
int multi_out = img_conf_.multiOutput;
|
||||
err = hg_imgproc::multi_out(ImagePrc_pHandle_, multi_out);
|
||||
err = hg_imgproc::multi_out(ImagePrc_pHandle_, multi_out, bw_threshold_);
|
||||
(this->*dump_img_)(ImagePrc_pHandle_, "multi_out");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -758,13 +758,13 @@ namespace hg_imgproc
|
|||
}
|
||||
return SCANNER_ERR_OK;
|
||||
}
|
||||
int multi_out(int out_type)
|
||||
int multi_out(int out_type, int bw_threshold)
|
||||
{
|
||||
std::vector<cv::Mat> mats(mats_);
|
||||
std::vector<cv::Mat> mat;
|
||||
mats_.clear();
|
||||
|
||||
IMageMulti output(out_type);
|
||||
IMageMulti output(out_type, bw_threshold);
|
||||
|
||||
for(size_t i = 0;i < mats.size();i++)
|
||||
{
|
||||
|
@ -1973,9 +1973,9 @@ namespace hg_imgproc
|
|||
{
|
||||
return ((imgproc*)himg)->fadeback();
|
||||
}
|
||||
int multi_out(HIMGPRC himg,int out_type)
|
||||
int multi_out(HIMGPRC himg, int out_type, int bw_threshold)
|
||||
{
|
||||
return ((imgproc*)himg)->multi_out(out_type);
|
||||
return ((imgproc*)himg)->multi_out(out_type, bw_threshold);
|
||||
}
|
||||
int multi_out_red(HIMGPRC himg)
|
||||
{
|
||||
|
|
|
@ -182,7 +182,7 @@ namespace hg_imgproc
|
|||
//拆分
|
||||
int split(HIMGPRC himg,int split3399);
|
||||
int fadeback(HIMGPRC himg);
|
||||
int multi_out(HIMGPRC himg,int out_type);
|
||||
int multi_out(HIMGPRC himg,int out_type, int bw_threshold);
|
||||
int multi_out_red(HIMGPRC himg);
|
||||
int auto_matic_color(HIMGPRC himg,int color_type);
|
||||
int auto_crop(HIMGPRC himg, float dpi);
|
||||
|
|
Loading…
Reference in New Issue