diff --git a/hgdriver/hgdev/hg_scanner.cpp b/hgdriver/hgdev/hg_scanner.cpp index 4b1f8ec..2baa791 100644 --- a/hgdriver/hgdev/hg_scanner.cpp +++ b/hgdriver/hgdev/hg_scanner.cpp @@ -5438,7 +5438,7 @@ void hg_scanner::image_process(std::shared_ptr& 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"); } } diff --git a/hgdriver/hgdev/image_process.cpp b/hgdriver/hgdev/image_process.cpp index dc0b3e1..ae7f2f4 100644 --- a/hgdriver/hgdev/image_process.cpp +++ b/hgdriver/hgdev/image_process.cpp @@ -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 mats(mats_); std::vector 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) { diff --git a/hgdriver/hgdev/image_process.h b/hgdriver/hgdev/image_process.h index 945c747..e1320fc 100644 --- a/hgdriver/hgdev/image_process.h +++ b/hgdriver/hgdev/image_process.h @@ -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);