{"id":18738023,"url":"https://github.com/ace4896/project-sekai-thumbnail-extractor","last_synced_at":"2026-05-06T02:37:06.558Z","repository":{"id":172855090,"uuid":"649308946","full_name":"Ace4896/project-sekai-thumbnail-extractor","owner":"Ace4896","description":"A small tool for extracting Project Sekai card thumbnails from the characters list.","archived":false,"fork":false,"pushed_at":"2024-06-28T23:09:14.000Z","size":6794,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-07T19:46:56.899Z","etag":null,"topics":["bootstrap","opencv","project-sekai","sekai","solidjs","typescript"],"latest_commit_sha":null,"homepage":"https://ace4896.github.io/project-sekai-thumbnail-extractor/","language":"TypeScript","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/Ace4896.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-04T13:03:08.000Z","updated_at":"2025-04-02T07:42:07.000Z","dependencies_parsed_at":"2024-04-09T18:49:56.504Z","dependency_job_id":"242a7288-5375-4b8d-8897-2434b3ccec6c","html_url":"https://github.com/Ace4896/project-sekai-thumbnail-extractor","commit_stats":null,"previous_names":["ace4896/project-sekai-thumbnail-extractor"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Ace4896/project-sekai-thumbnail-extractor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ace4896%2Fproject-sekai-thumbnail-extractor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ace4896%2Fproject-sekai-thumbnail-extractor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ace4896%2Fproject-sekai-thumbnail-extractor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ace4896%2Fproject-sekai-thumbnail-extractor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ace4896","download_url":"https://codeload.github.com/Ace4896/project-sekai-thumbnail-extractor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ace4896%2Fproject-sekai-thumbnail-extractor/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268297292,"owners_count":24228123,"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","status":"online","status_checked_at":"2025-08-01T02:00:08.611Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["bootstrap","opencv","project-sekai","sekai","solidjs","typescript"],"created_at":"2024-11-07T15:27:54.699Z","updated_at":"2026-05-06T02:37:06.503Z","avatar_url":"https://github.com/Ace4896.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Project Sekai Thumbnail Extractor\n\nA small tool for extracting Project Sekai card thumbnails from the characters list.\n\n## Usage\n\n[Link to Website Demo](https://ace4896.github.io/project-sekai-thumbnail-extractor/)\n\nFirst, open a screenshot of the character list as shown below:\n\n![Character List](./docs/character-list.jpg)\n\nThe tool will extract the individual card thumbnails, which you can right click to save/view separately:\n\n![Extracted Thumbnails](./docs/extracted-thumbnails.jpg)\n\n## Development Usage\n\nThe website demo is made using SolidJS, Bootstrap and OpenCV.js, and is managed using NodeJS and Vite.\n\n- Install NodeJS LTS (tested on v20.11.0)\n- Run `npm install` to download dependencies\n- Use one of the scripts below to use the app:\n\n```bash\n# Run app in development mode\n$ npm run dev\n\n# Build app in production mode\n$ npm run build\n\n# Preview app in production mode (requires building first)\n$ npm run serve\n```\n\n## Image Processing Details\n\nThe main image processing is handled by OpenCV, and can be summarised into two main steps:\n\n- Locate the character box in the screenshot (the white box containing all of the card thumbnails)\n  - Threshold the screenshot so that only near-white pixels are retained\n  - Find the largest external contour\n  - Approximate this contour to a regular polygon\n  - Crop to the bounding rect of the approximated contour\n- Locate the card thumbnails in the character box\n  - Inverse threshold the screenshot so that near-white pixels appear as black, and all others appear as white\n  - Find external contours within the character box twice - second pass is needed since the contours are usually disjointed\n  - Calculate the bounding boxes for each contour, only retaining ones that are square-ish\n  - Crop each card thumbnail from the card box\n\nMore details can be found in [this repository](https://github.com/Ace4896/project-sekai-thumbnail-matching-notes), which has various Jupyter Notebooks that use this approach.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Face4896%2Fproject-sekai-thumbnail-extractor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Face4896%2Fproject-sekai-thumbnail-extractor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Face4896%2Fproject-sekai-thumbnail-extractor/lists"}