{"id":18738025,"url":"https://github.com/ace4896/project-sekai-thumbnail-matching-notes","last_synced_at":"2026-05-04T01:34:59.624Z","repository":{"id":177039896,"uuid":"656283156","full_name":"Ace4896/project-sekai-thumbnail-matching-notes","owner":"Ace4896","description":"Notes on extracting and matching Project Sekai card thumbnails.","archived":false,"fork":false,"pushed_at":"2023-10-05T17:36:49.000Z","size":55616,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-20T03:12:00.041Z","etag":null,"topics":["opencv","project-sekai","python","sekai"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","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/Ace4896.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,"governance":null}},"created_at":"2023-06-20T16:16:50.000Z","updated_at":"2023-07-18T09:32:10.000Z","dependencies_parsed_at":"2023-11-14T19:38:03.996Z","dependency_job_id":null,"html_url":"https://github.com/Ace4896/project-sekai-thumbnail-matching-notes","commit_stats":null,"previous_names":["ace4896/project-sekai-thumbnail-matcher"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Ace4896/project-sekai-thumbnail-matching-notes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ace4896%2Fproject-sekai-thumbnail-matching-notes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ace4896%2Fproject-sekai-thumbnail-matching-notes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ace4896%2Fproject-sekai-thumbnail-matching-notes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ace4896%2Fproject-sekai-thumbnail-matching-notes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ace4896","download_url":"https://codeload.github.com/Ace4896/project-sekai-thumbnail-matching-notes/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ace4896%2Fproject-sekai-thumbnail-matching-notes/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32591601,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T22:12:39.696Z","status":"ssl_error","status_checked_at":"2026-05-03T22:09:10.534Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["opencv","project-sekai","python","sekai"],"created_at":"2024-11-07T15:27:54.978Z","updated_at":"2026-05-04T01:34:59.609Z","avatar_url":"https://github.com/Ace4896.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Project Sekai - Thumbnail Matching Notes\n\nNotes on extracting and matching Project Sekai card thumbnails. \n\n## Usage\n\nIn this folder are various Jupyter notebooks outlining my attempts at extracting and matching card thumbnails:\n\n- **Thumbnail Extraction**\n  - [`character-box`](./character-box.ipynb)\n    - Getting the character box from a screenshot of the character list\n    - This step helps narrow down the search for thumbnails, as it filters out most of the menu controls\n  - [`thumbnail-extraction`](./thumbnail-extraction.ipynb)\n    - Extracting individual card thumbnails from the character list\n- **Thumbnail Matching**\n  - [`orb-feature-matching`](./orb-feature-matching.ipynb)\n    - This approach involves computing ORB Features and performing brute-force matching of features\n    - While this would be the most accurate, it's probably too slow for the usecase in mind (importing of cards from a screenshot)\n    - I also haven't figured out a way to measure the \"similarity\" between the feature descriptors\n  - [`hsv-histogram`](./hsv-histogram.ipynb)\n    - This approach involves generating normalised colour histograms from HSV channels and comparing similarity\n    - The matching speed is good, even with a linear search\n    - However, the histograms are quite large, so storage may be an issue when more thumbnails are added\n  - [`image-hashing`](./image-hashing.ipynb)\n    - This approach involves generating image hashes from the thumbnails and comparing the distance between hashes\n    - The matching speed is better than the histogram method, without a big sacrifice in accuracy\n    - The hashes are just 64-bit integers, so storage is very simple\n\nTo run these notebooks:\n\n- Install Python 3.11 or higher (may work on older versions, but not sure if it'll work)\n- [Create a virtual environment and activate it](https://packaging.python.org/en/latest/guides/installing-using-pip-and-virtual-environments/#creating-a-virtual-environment)\n- Install dependencies: `pip install -r requirements.txt`\n- Run `jupyter notebook`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Face4896%2Fproject-sekai-thumbnail-matching-notes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Face4896%2Fproject-sekai-thumbnail-matching-notes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Face4896%2Fproject-sekai-thumbnail-matching-notes/lists"}