SkillAgentSearch skills...

Fastimagehash

C/C++ replacement for the 'imagehash' python package

Install / Use

/learn @simon987/Fastimagehash
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

libfastimagehash

CodeFactor GitHub license

WIP: Not ready for production use!

libfastimagehash is a imagehash replacement for C/C++.

See also:

<p align="center"> <img src="bench/results/phash_large.png"/> </p>

*See all benchmarks

Example usage

#include <fastimagehash.h>

int main() {
    unsigned char result[HASH_SIZE];

    phash_file("image.jpeg", result, HASH_SIZE, HIGHFREQ_FACTOR);
}

Build from source

# Download dependencies
apt install libopencv-dev libfftw3-dev cmake

# Checkout source
git clone --recursive https://github.com/simon987/fastimagehash

# Build
cmake .
make

# Install as a system library
sudo make install

Built with

Disclaimer: The methods used to compute the image hashes are identical to the imagehash python library, however, due to some slight differences in the way OpenCV vs Pillow images are resized, the final image hashes are not always exactly the same.

Related Skills

View on GitHub
GitHub Stars25
CategoryDevelopment
Updated21d ago
Forks1

Languages

C++

Security Score

95/100

Audited on Mar 13, 2026

No findings