Example #1
0
        private SubMatrix GetOnlyTextArea(ImageMatrix matrix)
        {
            var tools         = new MatrixTools(matrix);
            var textRectangle = tools.FindTextSubmatrix();

            return(matrix.GetSubMatrix(textRectangle));
        }
Example #2
0
        private void PrepareImage()
        {
            workMatrix = new ImageMatrix(new Bitmap(Image.FromFile(simplePageUrl)));
            BlurClearer clearer = new BlurClearer(workMatrix);

            clearer.ClearShadows();
            MatrixTools tools = new MatrixTools(workMatrix);

            matrix = workMatrix.GetSubMatrix(tools.FindTextSubmatrix());
        }