java中的开源图像倾斜检测/校正库?
我需要对某些图像执行倾斜校正(假设格式是 tiff)。也就是说,我有一些图像可能会向右或向左倾斜,我需要调整它们,使它们垂直向上和向下。图像由文字和线条组成;这些线条基本上是文本周围的边框;所以所有的线都是水平和垂直的(这有望简化问题)。
有没有一个开源的java库可以帮助解决这个问题?
I need to perform skew correction on some images (lets say the format is tiff). That is, I have some images which can come in tilted to the right or left and I need to adjust them so that they are straight up and down. The images consist of text and lines; the lines are basically borders around the text; so all of the lines are horizontal and vertical (which hopefully simplifies the problem).
Is there an open source java library that would help with this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我应该搜索得更好一点。答案在这里:
如何检测(并纠正)图像中的倾斜?
这里有一个不错的开源库:
http://www.jdeskew.com/
I should have searched a little better. Answer is here:
How can I detect (and correct) skew in images?
And a nice open source library is here:
http://www.jdeskew.com/