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