修复最大扫描尺寸自动裁切 非200dpi下出图畸变bug

This commit is contained in:
lovelyyoung 2020-03-19 21:11:12 +08:00
parent e873553d48
commit 08577df257
1 changed files with 4 additions and 1 deletions

View File

@ -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);
}