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