Skip to content

Is there an option to remove shadow from scanned documents #1015

Answered by Sicos1977
Sicos1977 asked this question in Help
Discussion options

You must be logged in to vote
        private void RemoveShadow(MagickImage image)
        {
            // convert 131828504-61b59e6a-25f8-405c-9366-6158baeccabe.png -negate -lat 20x20+10% -negate result.png
            image.Negate();
            image.AdaptiveThreshold(20, 20, new Percentage(10));
            image.Negate();
        }
        #endregion

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Sicos1977
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants