diff --git a/hgdriver/ImageProcess/ImageApplyRotation.h b/hgdriver/ImageProcess/ImageApplyRotation.h index 82c4ad4..2310438 100644 --- a/hgdriver/ImageProcess/ImageApplyRotation.h +++ b/hgdriver/ImageProcess/ImageApplyRotation.h @@ -1,14 +1,14 @@ /* * ==================================================== - * 功能:旋转图像 - * 作者:刘丁维 - * 生成时间:2020/4/21 - * 最近修改时间:v1.0 2020/04/21 - v1.1 2020/08/12 修复文稿方向自动识别导致崩溃的BUG - v1.2 2021/10/15 开放文稿方向识别模块 - v1.2.1 2022/04/25 补充切换版本的预处理代码 - * 版本号:v1.2.1 + * ܣתͼ + * ߣά + * ʱ䣺2020/4/21 + * ޸ʱ䣺v1.0 2020/04/21 + v1.1 2020/08/12 ޸ĸ巽Զʶ±BUG + v1.2 2021/10/15 ĸ巽ʶģ + v1.2.1 2022/04/25 л汾Ԥ + * 汾ţv1.2.1 * ==================================================== */ @@ -31,21 +31,21 @@ class GIMGPROC_LIBRARY_API CImageApplyRotation : public CImageApply public: enum class RotationType { - Invalid, //无效 - Rotate_90_clockwise, //顺时针90° - Rotate_180, //180° - Rotate_90_anti_clockwise, //逆时针90°,即270° + Invalid, //Ч + Rotate_90_clockwise, //˳ʱ90 + Rotate_180, //180 + Rotate_90_anti_clockwise, //ʱ90㣬270 - AutoTextOrientation //自动文稿方向识别旋转 + AutoTextOrientation //Զĸ巽ʶת }; public: /* - * rotation [in]:旋转类型 - * isBackTransposed [in]:true为背面180°旋转,反之亦然 - * dpi [in]:当前图像的DPI,该参数在rotation为AutoTextOrientation时生效。在识别文稿方向时,会默认将图像变换为200DPI进行识别 - * tessadataPath [in]:训练库文件路径,该参数在rotation为AutoTextOrientation时生效 + * rotation [in]:ת + * isBackTransposed [in]:trueΪ180ת֮Ȼ + * dpi [in]:ǰͼDPIòrotationΪAutoTextOrientationʱЧʶĸ巽ʱĬϽͼ任Ϊ200DPIʶ + * tessadataPath [in]:ѵļ·òrotationΪAutoTextOrientationʱЧ */ CImageApplyRotation(RotationType rotation, bool isBackTransposed = false, int dpi = 200, const char* tessdataPath = nullptr);