diff --git a/huagao/Device/GScanO1003399.cpp b/huagao/Device/GScanO1003399.cpp index 3fa79a5e..459f6f4b 100644 --- a/huagao/Device/GScanO1003399.cpp +++ b/huagao/Device/GScanO1003399.cpp @@ -737,20 +737,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);