如何将骰子图像旋转到直立位置以获得最佳 OCR?

发布于 2025-01-19 04:40:53 字数 1007 浏览 0 评论 0原文

我有以下图像:

https://i.sstatic.net/sdejq.jpg ---表现出1

https://i.sstatic.net.net/i4ftb.jpg

https://i.sstatic.net/vmys7.jpg - 死亡3

https://i.sstatic.net/uhzxp.jpg.jpg - die显示4

https://i.sstatic.net/kydz5.jpg - die显示5

https://i.sstatic.net/o9y1p.jpg.jpg - die显示了

我想在使用Tesseract上执行OCR。但是,问题是Tesseract OCR在旋转的图像上不能很好地工作,因此我想将图像旋转为直立的方向。我不确定如何做到这一点,因为我是OpenCV的初学者。有人可以指导我如何旋转这些图像吗?谢谢

I have the following images:

https://i.sstatic.net/sdEJQ.jpg - Die showing 1

https://i.sstatic.net/I4FTB.jpg - Die showing 2

https://i.sstatic.net/vmys7.jpg - Die showing 3

https://i.sstatic.net/UhZXp.jpg - Die showing 4

https://i.sstatic.net/KyDz5.jpg - Die showing 5

https://i.sstatic.net/O9y1p.jpg - Die showing 6

That I want to perform OCR on using Tesseract. However, the problem is the Tesseract OCR does not work well on rotated images so I want to rotate the image into an upright orientation. I am not sure how to do this as I am a beginner with OpenCV. Can someone guide me on how to rotate these images ? Thank you

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文