Auto Tetris Player based on CyberDIP 基于CybeDIP的自主俄罗斯方块程序
2018届IEEE班数字图像处理基础课程大作业——C03组
CyberDIP driver for windows in C++ 11.
CyberDIP is a USB device clicking touchscreens of smartphones or pads under PC's control. With the help of grbl running on an Arduino Nano, CyberDIP will translate serial port signals from your PC into 2D-motion and clicks. With the help of Computer Vision, CyberDIP can play many mobile games.
本工程是依赖C++ 11标准编写的CyberDIP在Windows环境下的配套软件。
CyberDIP是通过计算机USB控制的触摸屏点击设备(**实用新型专利2016201772460),通过搭载grbl 0.8c/0.9j的Arduino Nano(ATmega328)控制器,CyberDIP可以将USB串口发来的指令翻译成相应的二维运动与点击操作,模拟单指对屏幕的操作。 结合图像处理算法,CyberDIP可以实现触屏手机上游戏的自动攻略功能。
- Find solution to replace Airplayer.exe+PrintScreen
- Qt ≥5.7
- FFmpeg 2.2.2 (included in /3rdparty)
- QTFFmpegWrapper (included in /qtCyberDip/QTFFmpegWrapper)
- Android Debug Bridge (included in /qtCyberDip/prebuilts)
- (Optional)OpenCV ≥2.4.9
qtCyberDIP contains 3 + 1 parts:
- Serial Port(COM): Serial port and g-code module to work with Arduino.
- BBQScreen Client: BBQScreen client module to decode frames from Android devices.
- Screen Capture: Win32 API module to grab screen or windows, working with AirPlayer to read frames from iOS devices.
- Game Controller: User defined game controller, change this to play different games.
- Install Visual Studio (≥2013)
- Install Qt and Qt VS Add-In
- Download and unzip / clone this project.
- Install Driver for CH340 Chipset after connected to CyberDIP. (Driver is included)
- Add '3rdparty/x64' (Default, if you are using 32-bit OS, add '3rdparty/x86') into Environment Variable 'Path' (ATTENTION! NEVER CLEAN 'Path', unless you are exactly conscious of the consequence)
- Open qtCyberDip.sln in Visual Studio and follow the instructions in stdafx.h
- 安装 Visual Studio 2013或更高版本
- 安装 Qt 与相应版本的 Qt-VS插件
- 下载解压或clone本项目到本地
- 连接CyberDIP后,安装CH340 芯片组驱动,驱动包含在CH340文件夹中。
- 将 '3rdparty/x64' (默认x64,32位操作系统添加 '3rdprty/x86')加入系统环境变量 'Path' 中(注意不要清空原有内容)
- 使用VS打开工程文件 qtCyberDip.sln, 并按照 stdafx.h 中的说明操作
请参加“数字图像处理基础”的同学注意:
为了方便代码评阅,建议只修改 usrGameController.h 和 usrGameController.cpp 两个文件,最后使用git提交代码。
- Yue ZHOU, A.P. Department of Automation, Shanghai Jiao Tong University.
- Xiang LI, MEng Department of Automation, Shanghai Jiao Tong University.
- Email: lostxine@gmail.com
- Address: Room 2#302B, SEIEE Building, 800 DongchuanRd., Shanghai, PR China (200240)