{"id":18544287,"url":"https://github.com/qew21/Genshin-Subtitles","last_synced_at":"2025-04-09T19:30:47.254Z","repository":{"id":220332254,"uuid":"751361517","full_name":"qew21/GI-Subtitles","owner":"qew21","description":"原神双语字幕插件 （Genshin Impact Bilingual Subtitles Plugin）","archived":false,"fork":false,"pushed_at":"2024-10-28T16:00:59.000Z","size":42333,"stargazers_count":12,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-28T18:08:48.769Z","etag":null,"topics":["csharp","genshin-impact","paddleocr","subtitles"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/qew21.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":"2024-02-01T13:12:01.000Z","updated_at":"2024-10-28T16:01:04.000Z","dependencies_parsed_at":"2024-09-16T17:47:38.891Z","dependency_job_id":null,"html_url":"https://github.com/qew21/GI-Subtitles","commit_stats":null,"previous_names":["qew21/gi-subtitles"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qew21%2FGI-Subtitles","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qew21%2FGI-Subtitles/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qew21%2FGI-Subtitles/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qew21%2FGI-Subtitles/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qew21","download_url":"https://codeload.github.com/qew21/GI-Subtitles/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223407807,"owners_count":17140562,"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":["csharp","genshin-impact","paddleocr","subtitles"],"created_at":"2024-11-06T20:15:53.952Z","updated_at":"2025-04-09T19:30:42.176Z","avatar_url":"https://github.com/qew21.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 原神双语字幕插件\n\n基于[PaddleOCRSharp](https://github.com/raoyutian/PaddleOCRSharp)文本识别和[Genshin_Datasets](https://github.com/AI-Hobbyist/Genshin_Voice_Sorting_Scripts/tree/main/AI%20Hobbyist%20Version/Indexs)原神多语言文本json内容。\n\n## 介绍\n\n期望在展示单一语言剧情文本时，可以同事展示其他语言的对应文本，如中-\u003e英， 英-\u003e中， 日-\u003e中等。\n\n有时候可能喜欢某一语言配音，但对文本理解可能出现偏差。\n\n由于PaddleOCR的限制，本项目只能在64位带avx指令集上的CPU上使用。\n\n## 原理\n\n首先用OCR识别剧情文本，  \n然后采用Levenshtein距离匹配现有语言包中文本中对应的名称，  \n再根据名称找到其他语言包中的文本展示出来。\n\n## 示例\nhttps://www.bilibili.com/video/BV1qxtjeME7e/\n\n![语言包管理](images/textMap.JPG)\n\n## 更新\n\n**1.3.0**  \n1. 增加本地AI配音加载功能，适配了部分支线任务，可以通过快捷键`Ctrl+Shift+H`隐藏和展示双语字幕\n2. 多次使用快捷键`Ctrl+Shift+R`选择区域时，等待选择完成后再启动新的选择界面\n3. 帮助中增加使用说明\n\n**1.2.2**  \n1. 优化识别图像处理\n2. 鼠标位于字幕上时可以拖动和记录位置\n\n**1.2.1**  \n1. 需要根据角色性别选择文本时，使用女主内容，例如\n```\n#{M#The key is getting the Wayob to somehow acknowledge the Traveler's existence and record his heroic deeds.}{F#The key is getting the Wayob to somehow acknowledge the Traveler's existence and record her heroic deeds.}\n```\n展示成\n```\nThe key is getting the Wayob to somehow acknowledge the Traveler's existence and record her heroic deeds.\n```\n\n**1.2.0**  \n1. 启动后不再自动识别，可以通过快捷键`Ctrl+Shift+S`启动和暂停识别\n2. 在游戏界面上使用快捷键`Ctrl+Shift+R`可以选择识别区域，通常框出第一行文本的区域\n3. 启动和关闭识别有不同的音效，识别运行时，通知栏图标有一个蓝圈\n4. 右键菜单中的语言包可以查看和更新，支持原神和星穹铁道\n5. 性能大幅提高，延迟显著降低\n\n\n**1.1.1**  \n1. 右键菜单可以选择识别区域\n\n**1.1.0**  \n1. 支持星穹铁道\n2. 支持调整字体大小\n3. 支持13种语言字幕\n\n**1.0.4**  \n1. 支持支线剧情\n2. 更新4.4部分内容\n\n**1.0.3**  \n1. 支持日中字幕\n2. 降低短文本匹配错误率\n\n**1.0.2**  \n1. 切换语言后重启程序\n2. 将名称用旅行者代替\n3. 调整菜单顺序\n\n**1.0.1**  \n1. 识别区域去除背景，避免同一个字幕解析出不同的结果\n2. 增加语言切换功能，测试英中字幕可用\n\n**1.0.0**  \n1. 初版实现，中英字幕可用\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqew21%2FGenshin-Subtitles","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqew21%2FGenshin-Subtitles","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqew21%2FGenshin-Subtitles/lists"}