{"id":29441680,"url":"https://github.com/cetra3/dhash","last_synced_at":"2025-07-13T14:39:30.511Z","repository":{"id":57618751,"uuid":"174047133","full_name":"cetra3/dhash","owner":"cetra3","description":"An implementation of `dhash` image signatures for rust","archived":false,"fork":false,"pushed_at":"2019-03-06T01:27:44.000Z","size":8,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-04T09:43:51.550Z","etag":null,"topics":["image-processing","rust-lang"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/cetra3.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2019-03-06T01:20:44.000Z","updated_at":"2024-09-29T00:17:55.000Z","dependencies_parsed_at":"2022-09-16T19:01:55.264Z","dependency_job_id":null,"html_url":"https://github.com/cetra3/dhash","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cetra3/dhash","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cetra3%2Fdhash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cetra3%2Fdhash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cetra3%2Fdhash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cetra3%2Fdhash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cetra3","download_url":"https://codeload.github.com/cetra3/dhash/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cetra3%2Fdhash/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265157244,"owners_count":23719879,"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":["image-processing","rust-lang"],"created_at":"2025-07-13T14:39:28.124Z","updated_at":"2025-07-13T14:39:30.503Z","avatar_url":"https://github.com/cetra3.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dhash\n\nThis crate allows a `dhash` signature to be constructed from an image.\n\nRequires the `image` crate\n\nA `dhash` is a differential gradient hash that compares the difference in gradient between adjacent pixels, and provides a 64 bit signature of an image.\n\nA `dhash` can be used to compare against other images for similarity and is resilient to differences in:\n\n* Aspect Ratio\n* Image Size\n* Brightness and Contrast\n\n\nImplementation details taken from the [Kind of Like That](http://www.hackerfactor.com/blog/?/archives/529-Kind-of-Like-That.html) blog\n\n## Usage (CLI)\n\nInstall this crate:\n```bash\ncargo install dhash\n```\n\nRun `dhash \u003cimg1\u003e` to print out a `dhash` of the image at path `img1`\n\n```bash\n$ dhash test.jpg\ndhash for test.jpg is `13547707017824698364`\n```\n\nRun `dhash \u003cimg1\u003e \u003cimg2\u003e` to print out a `dhash` of both images and the distance between them (a lower number is closer):\n\n```bash\n$ dhash test.jpg other.jpg\ndhash for test.jpg is `4485936524854165493`\ndhash for other.jpg is `3337201687795727957`\ndistance is: 11\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcetra3%2Fdhash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcetra3%2Fdhash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcetra3%2Fdhash/lists"}