Code Monkey home page Code Monkey logo

dhash's People

Contributors

tom64b avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

dhash's Issues

Remove border noise

First, I'dd like to thank you for you extremely lightweight implementation of dhash!

I've submitted my first update via GitHub desktop, I added the function to remove the outer pixel, to remove border noise. This improves file comparisons for me.

I do have a small question, where do the numbers come from in:
$counts = array(0,1,1,2,1,2,2,3,1,2,2,3,2,3,3,4);

Hamming Distance in PostgreSQL

I've calculated hashes of over 400 000 images using your code. Thanks! I've used hamming_distance function from this https://github.com/palestamp/hamming_distance git. I've found that most ot the time it calculates distance as your dhash_distance, but sometimes it is very different. Is it possible to change you code, to works on postgresql to calculate distance from stored hashes? I probably could change hex hashes to bit hashes and do bit xor and popcount. Is it a better way?

Mysql Bit Count

Hi

Firstly thanks for your work as this will help my project alot.

I am coing to be stroring hashes in a mysql database generated with your php code and there will be around 100,000.

I then want to be able to query the above database to check if a duplicate or simular image is in the above database and return matching rows with a hamnering distance of upto 10. Mysql Bit_count i thought would be the best way to so this but thought i would ask for your thoughts and advise as i thought bit_count was integra only and thought there may be a bteer way to do this.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.