GetPageSegmentationMode() private method

private GetPageSegmentationMode ( IntPtr tesseractHandle ) : SegmentationMode
tesseractHandle IntPtr
return SegmentationMode
Beispiel #1
0
        /// <summary>
        /// Gets the page segmentation mode
        /// </summary>
        /// <returns>Segmentation Mode</returns>
        private SegmentationMode GetPageSegmentationMode()
        {
            Debug.Assert(m_Handle != IntPtr.Zero, "Handle must not be nulled!");

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

            return SegmentationMode.SINGLE_BLOCK;
        }