Cliff,<br>pHash does not work with standard SQL databases. You will need to use the mvptree storage mechanism to store the hashes and for fast lookup and retrieval of similar hashes. <br>The MVPTree package is available on the main pHash website and includes examples in C on how to store, search and retrieve and similar hashes.<br>
<br>Thanks<br>Evan<br><br><div class="gmail_quote">On Fri, May 6, 2011 at 6:24 AM, Cliff <span dir="ltr"><<a href="mailto:phash@obro.nl">phash@obro.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hey,<br>
<br>
I am currently working on a image database.<br>
Now I want to check whether there are duplicate images in my database.<br>
After searching the internet I came to the pHash library.<br>
I already build it on a debian virtual machine with the php library.<br>
But I can't figure out how to get a hash in my database to check.<br>
<br>
Is it possible to retrieve the hash with the C++ library?<br>
Is there a php function that returns the hash?<br>
Can you do the ph_hamming_distance compare logic within a database?<br>
I'm using mysql, monetdb and mongodb so there are lot's of possibilities.<br>
<br>
Hope you can help me<br>
<font color="#888888"><br>
Cliff<br>
_______________________________________________<br>
pHash-support mailing list<br>
<a href="mailto:pHash-support@lists.phash.org">pHash-support@lists.phash.org</a><br>
<a href="http://lists.phash.org/listinfo.cgi/phash-support-phash.org" target="_blank">http://lists.phash.org/listinfo.cgi/phash-support-phash.org</a><br>
</font></blockquote></div><br>