/// <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()); } }
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 }