GetTesseractVersion() private method

private GetTesseractVersion ( ) : IntPtr
return IntPtr
Exemplo n.º 1
0
        /// <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 "";
        }