public Orientation DetectOrientation(Bitmap b) { using (Tesseract.Page page = engine.Process(b, PageSegMode.OsdOnly)) { return(page.AnalyseLayout().GetProperties().Orientation); } }
public float DetectDeskewAngle(Bitmap b) { using (Tesseract.Page page = engine.Process(b, PageSegMode.OsdOnly)) { return(page.AnalyseLayout().GetProperties().DeskewAngle); } }