imagamagick在调查中发现“基准标记”

问题描述

我尝试计算调查结果。 该过程涉及扫描调查和一项空白调查。 我想放置基准标记以对齐每次扫描。

我的问题是

  • squareStar或其他类型的基准标记比较好...
  • 我应该使用哪种模式检测方法。我尝试-morphology close 'plus:15x15;cross' 然后标记对象,但可能是我走错了路...

我在Macosx和Ubuntu上使用ImageMagick 7.0.10-30 Q16 我的一小段代码

magick blank2_legacy.png  -colorspace RGB -fuzz 20%  -morphology close 'plus:15x15;cross' crp.png
magick crp.png -threshold 50% -define connected-components:verbose=true  -define connected-components:mean-color=true   -connected-components 4 -auto-level -depth 8 objects.png

测试图像:blank_legacy image

感谢您的帮助! 米歇尔 编辑:扭曲的例子 原始:blank survey 答案:distort1 distort2 Distort3

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)