调整自定义裁切的控件互斥,调整跳过空白页因为折叠过的纸张而跳不过
This commit is contained in:
parent
7a776486ac
commit
9e5dad5531
|
@ -843,7 +843,7 @@ else
|
|||
ic.is_autocontrast = 0; //无参数
|
||||
ic.is_autocrop = (ic.papertype == TwSS::None || ic.papertype ==TwSS::USStatement);
|
||||
ic.is_autodiscradblank_normal = image_prc_param_.bits.page == PAGE_OMIT_EMPTY;
|
||||
ic.discardblank_percent = omit_empty_level_ >= 60 ? 60 : omit_empty_level_; //默认20
|
||||
ic.discardblank_percent = omit_empty_level_ >= 70 ? 70 : omit_empty_level_;
|
||||
ic.is_autodiscradblank_vince = image_prc_param_.bits.page == PAGE_OMIT_EMPTY_RECEIPT;
|
||||
ic.is_switchfrontback = image_prc_param_.bits.exchange;
|
||||
ic.autodescrew = image_prc_param_.bits.automatic_skew;
|
||||
|
@ -886,7 +886,7 @@ else
|
|||
ic.errorExtention = image_prc_param_.bits.error_extention ;//
|
||||
ic.textureRemove = image_prc_param_.bits.remove_txtture;//
|
||||
ic.splitImage = image_prc_param_.bits.split;
|
||||
|
||||
{
|
||||
ic.cropRect.enable = custom_area_;
|
||||
int height = (custom_area_br_y_ *ic.resolution_dst) /25.4 - (custom_area_lt_y_ *ic.resolution_dst /25.4);
|
||||
int width = (custom_area_br_x_ *ic.resolution_dst) /25.4 - (custom_area_lt_x_ *ic.resolution_dst /25.4);
|
||||
|
@ -894,7 +894,7 @@ else
|
|||
ic.cropRect.width = width;
|
||||
ic.cropRect.x = custom_area_lt_x_ *ic.resolution_dst /25.4;
|
||||
ic.cropRect.y = custom_area_lt_y_ *ic.resolution_dst /25.4;
|
||||
|
||||
}
|
||||
ic.multiOutput = (MultiOutput)image_prc_param_.bits.multi_out;
|
||||
ic.normalCrop = image_prc_param_.bits.dark_sample;
|
||||
ic.dogeardistabce = fractate_level_;
|
||||
|
@ -929,9 +929,6 @@ else
|
|||
||image_prc_param_.bits.paper == PAPER_MAX_SIZE
|
||||
||image_prc_param_.bits.paper == PAPER_MAX_SIZE_CLIP
|
||||
||image_prc_param_.bits.paper == PAPER_TRIGEMINY
|
||||
||image_prc_param_.bits.paper == PAPER_16K
|
||||
||image_prc_param_.bits.paper == PAPER_8K
|
||||
||image_prc_param_.bits.paper == PAPER_16K_LATERAL
|
||||
)
|
||||
{
|
||||
ic.cropRect.enable = false;
|
||||
|
@ -1567,8 +1564,8 @@ void hg_scanner_239::thread_handle_usb_read(void)
|
|||
LOG_INFO(LOG_LEVEL_DEBUG_INFO, "received 'STOPSCAN' message in usb thread, check remaining image and finish scanning ...\n");
|
||||
|
||||
// fetch all buffered images and exit ...
|
||||
while(!is_dev_image_process_done())
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(30));
|
||||
//while(!is_dev_image_process_done())
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(1000));
|
||||
|
||||
while (get_image_count() > 0)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue