php中的图像比较 [英] Image comparison in php

查看:148
本文介绍了php中的图像比较的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的场景如下:
我必须在数据库中保存1000个图像,然后我必须将新图像与数据库图像进行比较(匹配应该是70%或更多)以获得最佳匹配来自php中数据库的图像。

My scenario is as follows: I have to save 1000 of images in database, and then I have to compare new image with database images for matches (match should be 70% or more) to get the best match image from database in php.

有没有任何算法或方法可以快速比较,结果更好......

is there any algorithm or method for fast comparison with better result ...

提前致谢:)

推荐答案

试试这个课程。它支持从图像中获取哈希字符串以存储在数据库中,并在以后与新图像进行比较:

https ://github.com/nvthaovn/CompareImage

Try this class. It support get hash string from image to store in database and compare with new image later:
https://github.com/nvthaovn/CompareImage

这是非常快速和准确的,尽管不是最佳代码。我的数据库中有20000张图片。

It is very fast and accurate, although not optimal code. I have 20000 pictures in my database.

这篇关于php中的图像比较的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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