is there any image hashing libraries in Go that I can use for a bloom filter service?

polaris · · 777 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>For example, checking if a uploaded image is possibly on the &#34;banned&#34; list, so something that is pretty accurate and can have something like resized or different formatting of the same image hash to the same value. </p> <p>FYI: I am just trying to play around and learn go, so no need for anything super heavy duty. I was thinking maybe having the script run on AWS lambda as a response to an s3 bucket insert. </p> <p>Thank you. </p> <hr/>**评论:**<br/><br/>CaptaincCodeman: <pre><p>You may want something like &#39;dhash&#39;. I don&#39;t know if there is a golang implementation yet.</p> <p>Some links about it from <a href="https://github.com/maccman/dhash" rel="nofollow">https://github.com/maccman/dhash</a></p> <p><a href="http://hackerlabs.org/blog/2012/07/30/organizing-photos-with-duplicate-and-similarity-checking/" rel="nofollow">http://hackerlabs.org/blog/2012/07/30/organizing-photos-with-duplicate-and-similarity-checking/</a> <a href="http://www.hackerfactor.com/blog/?/archives/529-Kind-of-Like-That.html" rel="nofollow">http://www.hackerfactor.com/blog/?/archives/529-Kind-of-Like-That.html</a> <a href="http://www.hackerfactor.com/blog/index.php?/archives/432-Looks-Like-It.html" rel="nofollow">http://www.hackerfactor.com/blog/index.php?/archives/432-Looks-Like-It.html</a> <a href="http://blog.iconfinder.com/detecting-duplicate-images-using-python/" rel="nofollow">http://blog.iconfinder.com/detecting-duplicate-images-using-python/</a></p> <p>I&#39;ve used it in Python and it&#39;s quite good at finding similar images even if they have been resized or altered slightly.</p> <p>Edited to add: found this - <a href="https://godoc.org/github.com/jteeuwen/imghash" rel="nofollow">https://godoc.org/github.com/jteeuwen/imghash</a></p></pre>TheBeardofGilgamesh: <pre><p>Thank you sir! This is some good stuff. </p></pre>dgryski: <pre><p>There are bindings for phash as well. </p> <p>Note that you probably want something like <a href="https://github.com/dgryski/go-simstore" rel="nofollow">https://github.com/dgryski/go-simstore</a> instead of a bloom filter to store and search through the image hashes.</p></pre>

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

777 次点击  
加入收藏 微博
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传