ImageMagick remove background noise

坚强是说给别人听的谎言 提交于 2019-12-24 23:12:29

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!