Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/308.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 我可以用c语言(可能使用MODI)检测文本图像的方向吗?_C#_Orientation_Ocr_Modi - Fatal编程技术网

C# 我可以用c语言(可能使用MODI)检测文本图像的方向吗?

C# 我可以用c语言(可能使用MODI)检测文本图像的方向吗?,c#,orientation,ocr,modi,C#,Orientation,Ocr,Modi,我有一些文件扫描到png文件。我不知道每次扫描的方向。我需要知道当我把它们呈现给用户时要旋转多少;0度、90度、180度或270度。这些文件是英文的 我正在使用MODI从.NET4.0C环境中的每个图像中提取文本。有没有办法使用MODI读取图像的方向?或者是另一种可以从c获取的方法来检测图像的方向?为什么要使用这种方法?只需检查尺寸: if(img.width>img.height) //orientation=landscape else //orientation=po

我有一些文件扫描到png文件。我不知道每次扫描的方向。我需要知道当我把它们呈现给用户时要旋转多少;0度、90度、180度或270度。这些文件是英文的


我正在使用MODI从.NET4.0C环境中的每个图像中提取文本。有没有办法使用MODI读取图像的方向?或者是另一种可以从c获取的方法来检测图像的方向?

为什么要使用这种方法?只需检查尺寸:

if(img.width>img.height)
    //orientation=landscape
else
    //orientation=portait

使用此方法将告诉我文档是否处于横向,但不会告诉我是将其旋转90度还是270度。我有一半的机会将文档倒置显示。