/// <summary> /// Gets the version of Tesseract OCR library /// </summary> /// <returns>TesseractOCR Version</returns> public string GetVersion() { IntPtr versionPtr = TesseractOCRBridge.GetTesseractVersion(); Debug.Assert(versionPtr != IntPtr.Zero, "Version must not be nulled"); if(versionPtr != IntPtr.Zero) { return Marshal.PtrToStringAnsi(versionPtr); } return ""; }