GetPageSegmentationMode() private méthode

private GetPageSegmentationMode ( IntPtr tesseractHandle ) : SegmentationMode
tesseractHandle IntPtr
Résultat SegmentationMode
Exemple #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;
        }