php判断两张图片是否相同

admin 2018-6-3 604

use cmf\controller\HomeBaseController;
$a='https://wx.qlogo.cn/mmopen/vi_32/PiajxSqBRaEKicUXKVXIQAmZ8ugxJ4udAyayjAI5ibQWGfzgD1UqaMI150r5Rxa0CqQz0IKBQab0nXmW67opY0Vwg/132';
$b='https://wx.qlogo.cn/mmopen/vi_32/PiajxSqBRaEK90GkicyJUs0yp1Plfg5aKNP2zBaPz9M5Kuc3dn1ibnMMZ9o1LVgsgqAL9iad5fM6bGtyREwM2iaWNqQ/132';
$hasher = new ImageHash;
$distance = $hasher->compare($h, $i); 
echo $distance;

打不过我吧,没有办法,就是这么强大

需要下载imagehash包,github地址:https://github.com/jenssegers/imagehash



最新回复 (0)
全部楼主
返回
发新帖
老师机论坛