Exemplo n.º 1
0
 /// <summary>
 /// Converts an image taken of an awake into pure text.
 /// </summary>
 /// <param name="bitmap"></param>
 /// <returns></returns>
 public string GetAwakening(Bitmap bitmap)
 {
     using (var page = TessEngine.Process(bitmap))
     {
         return(page.GetText());
     }
 }
Exemplo n.º 2
0
        public string GetAwakening(Bitmap bitmap)
        {
            return(GetText(bitmap).TrimEnd('\f'));

#if USE_NET_TESSERACT_WRAPPER
            using (var page = TessEngine.Process(bitmap))
            {
                return(page.GetText());
            }
#endif
        }