Browse Source

begin game control

game_control
Backpack 2 months ago
parent
commit
e7155bd810
3 changed files with 23 additions and 0 deletions
  1. +9
    -0
      README.md
  2. +7
    -0
      requirements.txt
  3. +7
    -0
      test_gui.py

+ 9
- 0
README.md View File

@ -0,0 +1,9 @@
# Mediapipe手势控制游戏
此分支为手势控制游戏的扩展
## 项目功能
- 使用摄像头采集用户的手势图像
- 识别用户的手势类别和方向
- 根据手势生成游戏手柄指令
- 控制游戏的转向、加速等动作(计划使用赛车游戏)

+ 7
- 0
requirements.txt View File

@ -0,0 +1,7 @@
mediapipe==0.10.7
opencv_contrib_python==4.8.0.76
opencv_python==4.4.0.46
opencv_python_headless==4.8.0.76
pykalman==0.9.5
PySide2==5.15.2.1
vgamepad==0.0.8

+ 7
- 0
test_gui.py View File

@ -0,0 +1,7 @@
from PySide2.QtWidgets import QApplication, QLabel
app = QApplication([])
label = QLabel("PySide2 窗口测试 - GUI 正常")
label.resize(400, 100)
label.show()
app.exec_()

Loading…
Cancel
Save