mirror of http://192.168.1.51:8099/lmh188/twain3.0
修复最大扫描尺寸自动裁切 非200dpi下出图畸变bug
This commit is contained in:
parent
e873553d48
commit
08577df257
|
@ -150,7 +150,10 @@ void ImageMatQueue::setparam(const GScanCap& param)
|
|||
if (param.resolution_dst != 200.0)
|
||||
{
|
||||
CImageApplyResize* apply;
|
||||
if (param.is_autocrop) {
|
||||
bool islongcustomcrop = false;
|
||||
if (param.papertype == TwSS::USStatement)
|
||||
islongcustomcrop = true;
|
||||
if (param.is_autocrop|| islongcustomcrop) {
|
||||
double ratio = param.resolution_dst / 200.0;
|
||||
apply = new CImageApplyResize(CImageApplyResize::ResizeType::RATIO, cv::Size(0, 0), ratio, ratio);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue