mirror of
https://github.com/simon987/fastimagehash.git
synced 2025-04-19 02:06:41 +00:00
42 lines
1.3 KiB
Markdown
42 lines
1.3 KiB
Markdown
## libfastimagehash
|
|
|
|
[](https://www.codefactor.io/repository/github/simon987/fastimagehash/overview/master)
|
|
[](https://github.com/simon987/fastimagehash/blob/master/LICENSE)
|
|
|
|
*WIP: Not ready for production use!*
|
|
|
|
`libfastimagehash` is a [imagehash](https://github.com/JohannesBuchner/imagehash/)
|
|
replacement for C/C++.
|
|
|
|
|
|
<p align="center">
|
|
<img src="bench/results/phash_large.png"/>
|
|
</p>
|
|
|
|
*[\*benchmarks](bench/)*
|
|
|
|
### Example usage
|
|
|
|
```C++
|
|
#include "fastimagehash.h"
|
|
|
|
int main() {
|
|
// TODO
|
|
}
|
|
```
|
|
|
|
### Build from source
|
|
|
|
// TODO
|
|
|
|
**Built with**
|
|
* [opencv](https://github.com/opencv) for image decoding & resizing
|
|
* [wavelib](https://github.com/rafat/wavelib) for wavelet decomposition in `whash` (With [additional CFLAGS](https://github.com/simon987/wavelib/commit/8d05b0b7321271b05365d3e89bfb0fd5a26d68a6))
|
|
* [fftw3](http://fftw.org/) for DCT in `phash`
|
|
* [google/benchmark](https://github.com/google/benchmark) to measure performance
|
|
|
|
**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.
|