Can I detect the orientation of an image with text in c# - possibly using MODI? -


i have number of documents scanned png files. not know orientation of each scan. need know how rotate them when present them user; either 0, 90, 180 or 270 degrees. documents in english.

i using modi extract text each image in .net 4.0 c# environment. there way read orientation of image using modi? or perhaps method accessible c# detect orientation of image?

why use method? check sizes:

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

Comments

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -