从浮雕/浮雕图像获取近似深度图的算法
我正在尝试从硬塑料身份证图片中读取信息。作为第一步,我一直在尝试处理图片以使文本更易于计算机阅读。这些图片相当清晰,但很棘手,因为它们的一侧较亮,另一侧较暗。看起来应该可以使用这些信息来创建深度图,然后将其转换为黑白图像。主要是,我想知道是否有一些已知的算法(越简单越好)我可以实现。我目前正在使用 Python 和 PIL 进行其余的处理,但是我可以采用的任何实现都很棒。
我正在使用的图像的一个小示例:
I am attempting to read information from pictures of hard plastic ID cards. As a first step, I've been trying to process the pictures to make the text more computer-readable. The pictures are fairly clear, but they are tricky because they are light on one side and dark on the other. It seems like it should be possible to use this information to create a depth map, which could then be converted to a black and white image. Mainly, I'd like to know if there is some known algorithm (the simpler the better) I could implement. I'm currently doing the rest of the processing using Python and PIL, but any implementation I could adapt would be great.
A small example of the images I'm working with:
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Mathematica 中的示例。如果结果令人满意,我可以逐步解释该过程。
编辑
逐步...
从
Example in Mathematica. If the result is satisfactory I could explain the procedure step by step.
Edit
Step by step ...
Starting with