PixelSquare.TesseractOCR.TesseractOCRBridge.Recognize C# (CSharp) Method

Recognize() private method

private Recognize ( IntPtr tesseractHandle, IntPtr monitorHandle ) : int
tesseractHandle IntPtr
monitorHandle IntPtr
return int
        public static extern int Recognize(IntPtr tesseractHandle, IntPtr monitorHandle);

Usage Example

示例#1
0
        /// <summary>
        /// Recognizes the image if the library can parse it
        /// Monitor handle can be nulled
        /// </summary>
        /// <returns>0 = success, -1 = failed</returns>
        private int Recognize()
        {
            Debug.Assert(m_Handle != IntPtr.Zero, "Handle must not be nulled!");

            if(m_Handle != IntPtr.Zero)
            {
                return TesseractOCRBridge.Recognize(m_Handle, IntPtr.Zero);
            }

            return -1;
        }