English | 中文
AI-GAME-RULE-EXTRACTOR is an innovative project developed based on Microsoft's paper 《MM-VID: Advancing Video Understanding with GPT-4V(ision)》. It aims to automatically extract game rules from gameplay videos, enabling developers to quickly replicate the gameplay mechanics of popular games. This project combines advanced computer vision and natural language processing technologies to provide game developers with a powerful tool for efficiently understanding and documenting complex game mechanics.
- Scene Detection: Automatically identify key scenes in videos using the SceneDetect library.
- Video Splitting: Divide long videos into smaller segments for analysis.
- Speech Recognition: Extract voice content from game videos using WhisperX.
- Clip Description Generation: Generate detailed descriptions for each video segment using GPT-4o-mini.
- Rule Generation: Create comprehensive game rule documentation based on video analysis and background information using GPT-4o-mini.
-
Clone the repository:
git clone https://github.com/skindhu/AI-GAME-RULE-EXTRACTOR cd AI-GAME-RULE-EXTRACTOR
-
Install dependencies:
pip install -r requirements.txt
-
Configure OpenAI API key: Set your OpenAI API key in the
src/config.py
file.
Run the main script to start the analysis process:
python main.py
main.py
: Main workflowsrc/
: Source code directoryscene_detection.py
: Scene detection modulevideo_splitter.py
: Video splitting modulespeech_recognition.py
: Speech recognition moduleclip_description.py
: Clip description generation modulerule_generator.py
: Rule generation moduleconfig.py
: Configuration file
This project is licensed under the MIT License - see the LICENSE file for details.
Follow the author's WeChat Official Account to learn more about AI exploration: