AutoIt - 按内容查找重复图片? [英] AutoIt - Find duplicate images by content?

查看:799
本文介绍了AutoIt - 按内容查找重复图片?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

下午好的SO社区,



我正在寻找一种使用AutoIt查找重复图片的方法。我已经研究过PixelSearch和SearchImage,但是它们都不需要我们需要他们做的。



我试图通过文件名比较2图像,看看他们是否相同图像(重复)。我想做的最好的方法是:



1)获取两个图像大小像素
2)使用while循环获得每个像素的颜色并将其存储在数组中
3)检查两个数组是否彼此相等。



有人有什么想法实现这个?



Tim p>

解决方案

如果您想了解两个图像是否完全匹配,无论名称是相同还是不同,在Crypt函数 _Crypt_HashFile 中使用MD2或MD5来生成这两个文件的哈希值并进行比较。


Good afternoon SO community,

I am looking for a way to find duplicate images using AutoIt. I've looked into PixelSearch and SearchImage but neither do exactly what I need them to do.

I am trying to compare 2 images by filename and see if they are the same image (a duplicate). The best way I've thought to do it would be to:

1) Get both image sizes in pixels 2) Use a while loop to get the color of each pixel and store it in an array 3) Check to see if both arrays are equal to each other.

Does anybody have any ideas on how to achieve this? Any suggestions are appreciated.

Thank you in advance,

Tim

解决方案

If you want to find out if both images are an exact match, regardless if names are the same or different, use the built-in Crypt function _Crypt_HashFile with MD2 or MD5 to make a hash of both files and compare that.

这篇关于AutoIt - 按内容查找重复图片?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆