问题
In order to be better prepared for the OCR process, I want to remove the background noise on my images(typically this is a scanned image).
This is the example:
Is there with magick.exe
command any approaches how to remove the noise from the images like this? If so, could you please show an example.
UPDATED
I use ImageMagick-7.0.7-Q16 on Windows 10
回答1:
Use -connected-components in ImageMagick to reduce the noise. (Unix syntax)
convert \
3foBc.png -threshold 60% \
-define connected-components:verbose=true \
-define connected-components:area-threshold=5 \
-define connected-components:mean-color=true \
-connected-components 8 \
out.png
来源:https://stackoverflow.com/questions/47989687/imagemagick-remove-background-noise