public string GetVersion()
 {
     try
     {
         return("Tesseract version: " + _tesseract?.Version());
     }
     catch (Exception e)
     {
         return(e.GetType() + " - " + e.Message);
     }
 }
示例#2
0
    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);
        }
    }