From dd286bef5470de94e7c16b465eff507683f68ebc Mon Sep 17 00:00:00 2001 From: lovelyyoung <1002639516@qq.com> Date: Thu, 5 Aug 2021 18:59:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=8B=E8=BD=AC=E4=BB=85=E6=96=87=E6=9C=AC?= =?UTF-8?q?=E6=96=B9=E5=90=91=E8=AF=86=E5=88=AB=E6=94=BE=E5=9C=A8PC?= =?UTF-8?q?=E8=AF=86=E5=88=AB=EF=BC=8C=E6=97=8B=E8=BD=AC=E6=94=BE=E5=9C=A8?= =?UTF-8?q?=E7=89=87=E4=B8=8A=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- huagao/Device/GScanO1003399.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/huagao/Device/GScanO1003399.cpp b/huagao/Device/GScanO1003399.cpp index 829c3835..52a113c9 100644 --- a/huagao/Device/GScanO1003399.cpp +++ b/huagao/Device/GScanO1003399.cpp @@ -662,20 +662,21 @@ void GScanO1003399::imgproce(std::shared_ptr>& buff) FileTools::writelog(log_DEBUG, "图像解码耗时 " + to_string(sw.elapsed_ms())); sw.reset(); buffs.clear(); - if (m_param.imageRotateDegree != 0.0 || m_param.is_backrotate180 || m_param.is_autotext) + if (m_param.is_autotext) { CImageApplyRotation::RotationType type; - if (m_param.imageRotateDegree > 89.0f && m_param.imageRotateDegree < 91.0f) + /*if (m_param.imageRotateDegree > 89.0f && m_param.imageRotateDegree < 91.0f) type = CImageApplyRotation::RotationType::Rotate_90_clockwise; else if (m_param.imageRotateDegree > 269.0f && m_param.imageRotateDegree < 271.0f) type = CImageApplyRotation::RotationType::Rotate_90_anti_clockwise; else if (m_param.imageRotateDegree > 179.0f && m_param.imageRotateDegree < 181.0f) type = CImageApplyRotation::RotationType::Rotate_180; - else - type = CImageApplyRotation::RotationType::Invalid; + else*/ if (m_param.is_autotext) type = CImageApplyRotation::RotationType::AutoTextOrientation; + else + type = CImageApplyRotation::RotationType::Invalid;//只处理自动文本方向识别 其他的不处理 TCHAR szIniFile[MAX_PATH] = { 0 }; SHGetSpecialFolderPath(NULL, szIniFile, CSIDL_WINDOWS, TRUE);