{"id":16573593,"url":"https://github.com/v2e4lisp/imagephash","last_synced_at":"2025-06-20T12:35:07.211Z","repository":{"id":46237689,"uuid":"79030099","full_name":"v2e4lisp/ImagePhash","owner":"v2e4lisp","description":"phash binding for perl  ( http://phash.org )","archived":false,"fork":false,"pushed_at":"2019-11-04T20:24:18.000Z","size":1868,"stargazers_count":0,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-05T15:24:29.616Z","etag":null,"topics":["perl-module","phash"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/v2e4lisp.png","metadata":{"files":{"readme":"README.pod","changelog":"Changes","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-15T12:03:50.000Z","updated_at":"2017-01-17T13:30:05.000Z","dependencies_parsed_at":"2022-08-28T16:22:20.500Z","dependency_job_id":null,"html_url":"https://github.com/v2e4lisp/ImagePhash","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/v2e4lisp/ImagePhash","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v2e4lisp%2FImagePhash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v2e4lisp%2FImagePhash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v2e4lisp%2FImagePhash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v2e4lisp%2FImagePhash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/v2e4lisp","download_url":"https://codeload.github.com/v2e4lisp/ImagePhash/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v2e4lisp%2FImagePhash/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260945524,"owners_count":23087027,"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":["perl-module","phash"],"created_at":"2024-10-11T21:42:35.370Z","updated_at":"2025-06-20T12:35:02.190Z","avatar_url":"https://github.com/v2e4lisp.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"=head1 ImagePhash\n\nImagePhash - Perl binding for pHash (http://phash.org)\n\n=head1 SYNOPSIS\n\n  use ImagePhash qw(pdiff phash);\n\n  my $hash1 = phash(\"img1.jpg\");\n  my $hash2 = phash(\"img1.png\");\n\n  my $diff = pdiff($hash1, $hash2);\n\n=head1 DESCRIPTION\n\nMeasure similarity between images.\n\n=head2 EXPORT\n\nNone by default.\n\n  phash($img)\n\nCalculate a perceptual hash for an image and returns a 16-byte long lowercase hex string\nwhich itself represents a 64bit unsinged integer.\n\n  pdiff($hash1, $hash2)\n\nCalculate the hamming distance between the two image hashes and returns a positive integer less than 64.\nA small value means that the two images look similar to each other.\n\n=head1 INSTALL\n\n=over 4\n\n=item *\nFor linux, libjpeg-dev and libpng-dev are requried.\n\n=item *\nFor Mac, ImageMagic and libjpeg are required.\n\n=item *\nWindows is not supported.\n\n=back\n\n  perl Makefile.PL\n  make\n  make test\n  make install\n\n=head1 SEE ALSO\n\n=over 4\n\n=item *\n\nhttp://phash.org\n\n=item *\n\nphash bindings for other languages https://github.com/clearscene/pHash/tree/master/bindings\n\n=item *\n\nHow to automatically identify similar images using phash http://cloudinary.com/blog/how_to_automatically_identify_similar_images_using_phash\n\n=back\n\n=head1 AUTHOR\n\nWenjun Yan, E\u003clt\u003ewenjun.yan.dev@gmail.comE\u003cgt\u003e\n\n=head1 COPYRIGHT AND LICENSE\n\nCopyright (C) 2017 by Wenjun Yan\n\nThis library is free software; you can redistribute it and/or modify\nit under the same terms as Perl itself, either Perl version 5.18.2 or,\nat your option, any later version of Perl 5 you may have available.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fv2e4lisp%2Fimagephash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fv2e4lisp%2Fimagephash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fv2e4lisp%2Fimagephash/lists"}