SetPageSegmentationMode() private method

private SetPageSegmentationMode ( IntPtr tesseractHandle, SegmentationMode mode ) : void
tesseractHandle IntPtr
mode SegmentationMode
return void
示例#1
0
        /// <summary>
        /// Sets the page segmentation mode.
        /// </summary>
        /// <param name="mode">Segmentation Mode</param>

        private void SetPageSegmentationMode(SegmentationMode mode)
        {
            Debug.Assert(m_Handle != IntPtr.Zero, "Handle must not be nulled!");

            if(m_Handle != IntPtr.Zero)
            {
                TesseractOCRBridge.SetPageSegmentationMode(m_Handle, mode);
            }
        }