{"id":17045777,"url":"https://github.com/spanglelabs/vidhash","last_synced_at":"2025-04-05T22:43:18.622Z","repository":{"id":38190314,"uuid":"495132104","full_name":"SpangleLabs/vidhash","owner":"SpangleLabs","description":"Perceptual video hashing library","archived":false,"fork":false,"pushed_at":"2024-11-04T10:19:04.000Z","size":207,"stargazers_count":3,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-23T09:31:46.912Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SpangleLabs.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":"2022-05-22T17:40:28.000Z","updated_at":"2025-01-23T10:30:41.000Z","dependencies_parsed_at":"2023-01-25T11:45:33.107Z","dependency_job_id":null,"html_url":"https://github.com/SpangleLabs/vidhash","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/SpangleLabs%2Fvidhash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpangleLabs%2Fvidhash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpangleLabs%2Fvidhash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpangleLabs%2Fvidhash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SpangleLabs","download_url":"https://codeload.github.com/SpangleLabs/vidhash/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247411193,"owners_count":20934650,"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":[],"created_at":"2024-10-14T09:38:20.741Z","updated_at":"2025-04-05T22:43:18.589Z","avatar_url":"https://github.com/SpangleLabs.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vidhash\n[Vidhash](https://pypi.org/project/vidhash/) is a perceptual video hashing and checking library, to detect similar videos, or videos containing similar scenes.\n\n## How it works\nBasically, this video hashing works by scaling the video down a bit, and taking 5 frames a second as images, and performing image hashes on those frames.\nThen it can do checks by checking how many image hashes from one video match up with image hashes from another.\n\n## How to use\nThis documentation is a little sparse at the moment, but the basic summary is that to hash a video, use `video_hash = hash_video(video_path)`.  \nThis returns a `VideoHash` object.  \nYou can also provide a `HashSettings` object. HashSettings need to match for two video hashes to be compared.\nCurrently HashSettings allow specifying the\n\nWhen checking video hashes against each-other, use `video_hash.check_match(other_hash)`.\nYou can optionally provide a `MatchOptions` object as a second argument, or use a MatchOptions object and call the `MatchOptions.check_match(hash1, hash2)` method on it.\n\nThere are 3 supported types of MatchSettings:\n- `FrameCountMatch`\n  - Checks whether a specified number of frames match between the two videos\n  - Allows specifying the hamming distance between two frames which should be considered a \"match\"\n  - Allows ignoring blank frames\n- `PercentageMatch`\n  - Checks whether a specified percentage of the shorter video's frames match the longer video\n  - Allows specifying the hamming distance between two frames which should be considered a \"match\"\n  - Allows ignoring blank frames\n- `DurationMatch`\n  - Checks whether a specified \"duration\" of frames match up in order between the two videos\n    - e.g. 3 seconds duration, at 5 fps, would check whether 15 frames match, in a row, between the two videos\n  - Allows specifying the hamming distance between two frames which should be considered a \"match\"\n\n\n## Todo\n- Code\n  - Wrapper for imagehash.ImageHash\n  - Datastore\n    - (For looking up matching videos from a collection)\n- More documentation\n- More tests\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspanglelabs%2Fvidhash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspanglelabs%2Fvidhash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspanglelabs%2Fvidhash/lists"}