{"id":18003935,"url":"https://github.com/simon987/fastimagehash","last_synced_at":"2025-03-26T10:31:02.279Z","repository":{"id":52343499,"uuid":"230109884","full_name":"simon987/fastimagehash","owner":"simon987","description":"C/C++ replacement for the 'imagehash' python package","archived":false,"fork":false,"pushed_at":"2023-06-12T01:13:48.000Z","size":11585,"stargazers_count":18,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-07-30T19:49:59.529Z","etag":null,"topics":["fftw","opencv","perceptual-hashing","wavelet-decomposition"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simon987.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-12-25T13:54:57.000Z","updated_at":"2024-03-11T19:10:07.000Z","dependencies_parsed_at":"2022-09-06T19:12:32.073Z","dependency_job_id":null,"html_url":"https://github.com/simon987/fastimagehash","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simon987%2Ffastimagehash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simon987%2Ffastimagehash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simon987%2Ffastimagehash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simon987%2Ffastimagehash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simon987","download_url":"https://codeload.github.com/simon987/fastimagehash/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222137901,"owners_count":16937415,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fftw","opencv","perceptual-hashing","wavelet-decomposition"],"created_at":"2024-10-30T00:12:52.900Z","updated_at":"2024-10-30T00:12:53.459Z","avatar_url":"https://github.com/simon987.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"## libfastimagehash\n\n[![CodeFactor](https://www.codefactor.io/repository/github/simon987/fastimagehash/badge/master)](https://www.codefactor.io/repository/github/simon987/fastimagehash/overview/master)\n[![GitHub license](https://img.shields.io/github/license/simon987/fastimagehash)](https://github.com/simon987/fastimagehash/blob/master/LICENSE)\n\n*WIP: Not ready for production use!*\n\n`libfastimagehash` is a [imagehash](https://github.com/JohannesBuchner/imagehash/) \nreplacement for C/C++.\n\n**See also:**\n\n * [go bindings](https://github.com/simon987/fastimagehash-go)\n(with *cgo*).\n* [imagehash-web](https://github.com/simon987/imagehash-web) (Javascript version)\n\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"bench/results/phash_large.png\"/\u003e\n\u003c/p\u003e\n\n*[\\*See all benchmarks](bench/README.md)*\n\n### Example usage\n\n```C\n#include \u003cfastimagehash.h\u003e\n\nint main() {\n    unsigned char result[HASH_SIZE];\n\n    phash_file(\"image.jpeg\", result, HASH_SIZE, HIGHFREQ_FACTOR);\n}\n```\n\n\n### Build from source\n\n```bash\n# Download dependencies\napt install libopencv-dev libfftw3-dev cmake\n\n# Checkout source\ngit clone --recursive https://github.com/simon987/fastimagehash\n\n# Build\ncmake .\nmake\n\n# Install as a system library\nsudo make install\n```\n\n\n**Built with** \n* [opencv](https://github.com/opencv) for image decoding \u0026 resizing\n* [wavelib](https://github.com/rafat/wavelib) for wavelet decomposition in `whash`  (With [additional CFLAGS](https://github.com/simon987/wavelib/commit/8d05b0b7321271b05365d3e89bfb0fd5a26d68a6))\n* [fftw3](http://fftw.org/) for DCT in `phash`\n* [google/benchmark](https://github.com/google/benchmark) to measure performance\n\n**Disclaimer**: The methods used to compute the image hashes\nare identical to the `imagehash` python library, however, due to\nsome slight differences in the way OpenCV vs Pillow images are resized,\nthe final image hashes are not always exactly the same. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimon987%2Ffastimagehash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimon987%2Ffastimagehash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimon987%2Ffastimagehash/lists"}