查找两个图像之间的差异,但*不是*像素之间的差异
我希望有人能够帮助我。
我有几对黑白图像,是用大型扫描仪扫描文本得到的(生成的文件高达 500M)。扫描的文本几乎相同,我需要检查是否有任何实质性差异。
显然,我无法逐像素进行比较,因为扫描到 bmp 中的同一图像每次扫描时都会得到略有不同的结果。
有谁知道我可以购买或下载任何库(开源库或商业库),并围绕它构建 .NET 应用程序。
预先感谢您的帮助。 海伦.
I hope someone will be able to help me.
I have pairs of black and white images that resulted from scanning texts with a large scanner (resulting files are up 500M). The texts scanned are nearly identical, and I need to check if there are any substantial differences.
Obviously I can not compare pixel by pixel since the same image scanned into a bmp will give me a slightly different result every time I scan.
Does anyone know of any library - open source or commertial - that I can buy or download, and build a .NET application around it.
Thank you in advance for your help.
Helen.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
使用感知哈希。它检查两个图像是否相似。
您还可以使用 open cv 中可用的多种算法之一来计算特征描述符,然后比较向量距离。如果距离低于某个阈值,则将图像视为相同。
你可以尝试 GIST、SURF、SIFT 等(有些也是尺度和旋转不变的)。
Use perceptive hashing. It checks if two images are similar.
You can also compute feature descriptor using one of the many algorithms available in open cv and just compare the vector distances. Consider images as same if the distanced is below some threshold.
You can try GIST, SURF, SIFT, etc. (Some are scale and rotation invariant also).
如果您仅处理文本,则可以对两个图像进行 OCR 并比较提取的文本。
If you're working with text only, you could OCR both images and compare the extracted text.