GameSentenceMiner-2.9.9


توضیحات

A tool for mining sentences from games. Update: Dependencies, replay buffer based line searching, and bug fixes.
ویژگی مقدار
سیستم عامل OS Independent
نام فایل GameSentenceMiner-2.9.9
نام GameSentenceMiner
نسخه کتابخانه 2.9.9
نگهدارنده []
ایمیل نگهدارنده []
نویسنده -
ایمیل نویسنده Beangate <bpwhelan95@gmail.com>
آدرس صفحه اصلی -
آدرس اینترنتی https://pypi.org/project/GameSentenceMiner/
مجوز MIT License
<p align="center"> <img src="https://github.com/bpwhelan/GameSentenceMiner/blob/main/assets/gsm.png?raw=true" width="100" height="100" style="border-radius: 20px" alt="gamesentenceminer" /> </p> <h1 align="center">GSM (GameSentenceMiner)</h1> <p align="center"> <b>Turn your gaming time into language mastery.</b><br> </p> <div align="center"> [![Github All Releases](https://img.shields.io/github/downloads/bpwhelan/GameSentenceMiner/total.svg)](https://github.com/bpwhelan/GameSentenceMiner/releases) <a href="https://github.com/sponsors/bpwhelan"> <img src="https://img.shields.io/static/v1?label=Sponsor&message=%E2%9D%A4&logo=GitHub&color=%23fe8e86" alt="Sponsor on GitHub"> </a> [![Ko-Fi](https://img.shields.io/badge/donate-ko--fi-ed6760?label=donate)](https://ko-fi.com/beangate) [![Discord](https://img.shields.io/discord/1286409772383342664?color=%237785cc)](https://discord.gg/yP8Qse6bb8) [![GitHub License](https://img.shields.io/github/license/bpwhelan/GameSentenceMiner)](https://github.com/bpwhelan/GameSentenceMiner?tab=GPL-3.0-1-ov-file) English | [日本語](docs/ja/README.md) | [简体中文](docs/zh/README.md) | [Español](docs/es/README.md) </div> --- ### 🎮 See it in Action ![Demo Gif](.github/files/readme_demo.avif) - OCR to get get text from a game that doesn't support text hooks. - Look up words with Yomitan in game. - Create Anki cards with game audio + screenshot (or gif) automatically. --- ## What does it do? GSM is an application designed to automate the process of creating flashcards while you play. It sits between your game and Anki, handling audio recording, screenshots, and OCR so you don't have to interrupt your gameplay. ### 📝 Anki Card Enhancement GSM automatically adds context to your Anki cards whenever you create them. * **Audio Capture:** Uses Voice Activity Detection (VAD) to record and trim the specific voice line associated with the text. * **Screenshots:** Captures the game state the moment the line is spoken. GIFs and Black Bar Removal are supported. * **Mine from History:** Go back and create cards from previous lines you've encountered (i.e. cutscenes). * **Multi-Line Support:** Capture multiple lines of dialogue into one card using the built-in Texthooker. * **AI Translation:** Optional integration to provide sentence translations using your own API key. https://github.com/user-attachments/assets/df6bc38e-d74d-423e-b270-8a82eec2394c ### 👁️ OCR (Text Recognition) For games that don't have a text hook (Agent/Textractor), GSM uses a custom fork of [OwOCR](https://github.com/AuroraWright/owocr/) to read text directly from the screen. This opens up all kinds of posssibilities for games that would otherwise be inaccessible for language learning/sentence mining. For example I've made cards with games like Metal Gear Solid 1+2, Titanfall 2, and Sekiro, all using GSM's OCR. * **Easy Setup:** Managed installation means you don't need to fiddle with terminals. * **Two-Pass System:** Clean, fast output similar to as if you had a hook. * **Customizable Capture Zones:** Define exactly where text appears on your screen for optimal results. https://github.com/user-attachments/assets/07240472-831a-40e6-be22-c64b880b0d66 ### 🖥️ Overlay GSM includes a transparent overlay for instant dictionary lookups. Currently Windows only, Linux and Mac support are WIP. * Hover over characters in-game to see definitions via Yomitan. * Create cards without ever leaving the game window. * Automatically Generated Furigana Display In Game. ![Overlay Demo](https://github.com/user-attachments/assets/c8374705-efa0-497b-b979-113fae8a1e31) ### 📊 Statistics Track your immersion habits with the stats dashboard. * **Kanji Grid:** View every Kanji you've encountered and click them to see their source sentences. * **Goals:** Set daily reading targets. * **Database Management:** Clean up and organize your mining history. ![stats](docs/images/overview2.png) --- ## 🚀 Getting Started 1. **Download:** Get the [latest release](https://github.com/bpwhelan/GameSentenceMiner/releases). 2. **Install:** Watch the [Installation Guide](https://www.youtube.com/watch?v=sVL9omRbGc4). 3. **Requirements:** * An Anki tool (Yomitan, JL, etc.) * A text source (Agent, Textractor, or GSM's built-in OCR) * A game ## 📚 Documentation For full setup guides and configuration details, check the [Wiki](https://docs.gamesentenceminer.com/) (Currently WIP). ## ❤️ Acknowledgements * [OwOCR](https://github.com/AuroraWright/owocr) & [MeikiOCR](https://github.com/rtr46/meikiocr) for the OCR backend. * [Renji's Texthooker](https://github.com/Renji-XD/texthooker-ui) & [Saplling](https://github.com/Saplling/transparent-texthooker-overlay). * [exSTATic](https://github.com/KamWithK/exSTATic) for the stats design inspiration. * [chaiNNer](https://github.com/chaiNNer-org/chaiNNer) for the Python integration strategy. ### Integrated Components This project includes modified versions of the following libraries, I got tired of submodule hell so I've included them directly here for easier management all credits go to the original authors: * **Texthooker UI** - GSM: https://github.com/bpwhelan/GameSentenceMiner/tree/main/texthooker - Original: [Renji-XD/texthooker-ui](https://github.com/Renji-XD/texthooker-ui) * **OwOCR** - GSM: https://github.com/bpwhelan/GameSentenceMiner/tree/main/GameSentenceMiner/owocr - Original: [AuroraWright/owocr](https://github.com/AuroraWright/owocr) * **MeCab Controller** - GSM: https://github.com/bpwhelan/GameSentenceMiner/tree/main/GameSentenceMiner/mecab - Original: [Ajatt-Tools/mecab_controller](https://github.com/Ajatt-Tools/mecab_controller) ## Star History <a href="https://www.star-history.com/#bpwhelan/GameSentenceMiner&type=date&legend=top-left"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=bpwhelan/GameSentenceMiner&type=date&theme=dark&legend=top-left" /> <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=bpwhelan/GameSentenceMiner&type=date&legend=top-left" /> <img alt="Star History Chart" src="https://api.star-history.com/svg?repos=bpwhelan/GameSentenceMiner&type=date&legend=top-left" /> </picture> </a> ## Sponsors | <img src="https://signpath.org/assets/favicon.png" width="25" height="25" align="center"> | Free code signing provided by [SignPath.io](https://about.signpath.io/), certificate by [SignPath Foundation](https://signpath.org/). | | :--- | :--- |


نیازمندی

مقدار نام
- requests~=2.32.5
- watchdog~=6.0.0
- DateTime~=5.5
- soundfile~=0.13.1
- toml~=0.10.2
- psutil~=7.1.0
- rapidfuzz~=3.10.0
- plyer~=2.1.0
- keyboard~=0.13.5
- websockets~=15.0.1
- dataclasses_json~=0.6.7
- obsws-python~=1.8.0
- numpy==2.2.6
- faster-whisper~=1.2.1
- silero-vad~=6.2.0
- regex~=2025.10.23
- opencv-python~=4.12.0.88
- scikit-image~=0.25.2
- oneocr==1.0.10
- google-genai~=1.46.0
- sounddevice~=0.5.2
- matplotlib~=3.10.6
- groq~=0.33.0
- flask~=3.1.2
- pystray~=0.19.5
ys_platfor pygetwindow==0.0.9;
ys_platfor pywin32==311;
ys_platfor win10toast==0.9;
- stable-ts~=2.19.1
- torchcodec~=0.8.1
- torchaudio~=2.8.0
- torch~=2.8.0
- pillow~=12.0.0
- openai~=2.6.0
- flask-compress~=1.15
- meikiocr~=0.1.4
- jaconv~=0.4.0
- loguru~=0.7.3
- pyperclipfix>=1.9.4
- desktop-notifier>=6.1.0
- mss>=10.1.0
ys_platfor pyobjc~=10.3.1;
- pyqt6~=6.10.0
- pyqtdarktheme~=2.1.0
- langid~=1.1.6
- pysbd~=0.3.4
- pypresence>=4.6.1
- tokenizers==0.22.1
- curl-cffi~=0.13.0
- betterproto==2.0.0b7
- py7zr~=1.0.0
- waitress==3.0.2
- flasgger~=0.9.7
ys_platfor pynput~=1.8.1;
- uv>=0.9.22
- pip>=25.3
- ollama>=0.6.1
xtr betterproto==2.0.0b7;
xtr onnxruntime-gpu[cuda,cudnn];
xtr pytest>=9.0.2;


زبان مورد نیاز

مقدار نام
<3.14,>=3.10 Python


نحوه نصب


نصب پکیج whl GameSentenceMiner-2.9.9:

    pip install GameSentenceMiner-2.9.9.whl


نصب پکیج tar.gz GameSentenceMiner-2.9.9:

    pip install GameSentenceMiner-2.9.9.tar.gz