ImageMagick消除背景噪音 [英] ImageMagick remove background noise

查看:196
本文介绍了ImageMagick消除背景噪音的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为了更好地为OCR过程做好准备,我想删除图像上的背景噪点(通常这是扫描图像)。

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).

这是示例:

是否有 magick.exe 命令如何从图像中删除这样的噪音?如果有,请举例说明。

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.

更新

我使用Windows 10上的ImageMagick-7.0.7-Q16

I use ImageMagick-7.0.7-Q16 on Windows 10

推荐答案

在ImageMagick中使用-connected-components来降低噪音。 (Unix语法)

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

这篇关于ImageMagick消除背景噪音的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆