pHash is an open source software library released under the GPLv3 license that implements several perceptual hashing algorithms, and provides a C-like API to use those functions in your own programs. pHash itself is written in C++. pHash was created by Evan Klinger.
Extracted automatically from Phash homepage
brew install phash
The following 5 dependencies will be installed if you install Phash: