public string GetVersion() { try { return("Tesseract version: " + _tesseract?.Version()); } catch (Exception e) { return(e.GetType() + " - " + e.Message); } }
public string CheckTessVersion() { _tesseract = new TesseractWrapper(); try { string version = "Tesseract version: " + _tesseract.Version(); Debug.Log(version); return(version); } catch (Exception e) { string errorMessage = e.GetType() + " - " + e.Message; Debug.LogError("Tesseract version: " + errorMessage); return(errorMessage); } }