使用 imagemagick 检测倾斜图像
我之前发布了如何自动修复倾斜的图像,有没有办法简单地用 image magick 检测它是否倾斜?即,是否有一个命令可以在两个图像上运行,一个倾斜,一个不倾斜,并使用该输出作为其是否倾斜的决定因素?
感谢您的帮助, 凯文
I previously posted how to auto fix a skewed image, is there a way to simply detect that it is skewed with image magick? I.e. is there a command that I could run on two images, one skewed and one not, and use that output as the determinant of whether it's skewed?
Thanks for any help,
Kevin
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
更正我上面的评论。如果您有规则的文本行,有一种方法可以确定 Imagemagick 中的倾斜角度。
输入:
请参阅https://imagemagick.org/script/escape.php
Correction to my comment above. There is a way to determine the skew angle in Imagemagick if you have regular lines of text.
Input:
See https://imagemagick.org/script/escape.php