Python 或 PHP 中的感知哈希算法?
我已通过 StackOverflow 暴露于 pHash,一个用于音频、视频、图像和文本指纹识别的 C++ 感知哈希库 - 最近初步绑定了 PHP、C# 和 Java。
我有兴趣研究这些算法,并且想知道是否有相同/相似算法的开源纯 Python 或 PHP 实现?这会让我的生活变得更加轻松。
I've been exposed via StackOverflow to pHash, a C++ perceptual hash library for audio, video, images, and text fingerprinting - recently with preliminary bindings for PHP, C# and Java.
I'm interested in studying these algorithms and I'm wondering if there are any open-source pure Python or PHP implementations of the same / similar algorithm? This would make my life a lot easier.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我一直在 Google 上搜索,但没有找到太多内容。由于您似乎想要将代码用于学术目的,我建议:
点击维基百科 - 查找每个算法并了解其工作原理
检查 pHash 站点的邮件列表 - 我怀疑您是第一个感到好奇的人。
向作者发送电子邮件,询问他们使用的来源(书籍、论文等)
向
使用书店、图书馆等. 寻找你自己的资源
我个人发现学习代码对于教授算法来说非常无效(无论如何,直到你对整个过程有感觉为止)。
I have been searching on Google, but not much has come up. Since it seems you want the code for academic purposes, I would suggest:
Hit Wikipedia - look up each algorithm and get a feel for how it works
Check the pHash site's mailing list - I doubt you are the first person to be curious.
Email the authors and ask what sources they used (books, papers, etc.)
Use bookstore, library, etc. to find your own sources
I personally find that studying code is very ineffective at teaching algorithms (at first anyway, until you have a feel for the overall process).