Ejemplo n.º 1
0
        public static List <TextBlock> RecognizeSentences(GrayImage image)
        {
            ColorConverter.StartBinarized(image);
            var textBlocks = TextExtraction.FindTextBlocks(image);

            if (textBlocks.Count > 0)
            {
                Classifier.FindTextOfTextBlocks(image, textBlocks, TextExtraction.IsHorizontalText);
            }

            return(textBlocks);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// This function is for debugging purposes only
        /// </summary>
        /// <param name="image"></param>
        /// <param name="showImageFunction"></param>
        /// <returns></returns>
        public static List <TextBlock> Start(GrayImage image, ShowImageHandle showImageFunction)
        {
            ColorConverter.StartBinarized(image);
            var textBlocks = TextExtraction.FindTextBlocks(image);

            DebugTextExtract(image, textBlocks, showImageFunction);
            //DebugShapNormilization(image, textBlocks, showImageFunction);

            if (textBlocks.Count > 0)
            {
                Classifier.FindTextOfTextBlocks(image, textBlocks, TextExtraction.IsHorizontalText);
            }

            return(textBlocks);
        }