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 translates serial port signals from your PC into 2D-motion and clicks. Combined with computer vision, CyberDIP can play many games autonomously on almost any devices with a touchscreen.
本工程是依赖C++ 11标准编写的CyberDIP在Windows环境下的配套软件。
CyberDIP是通过计算机USB控制的触摸屏点击设备(中国实用新型专利2016201772460),通过搭载grbl 0.8c/0.9j的Arduino Nano(ATmega328)控制器,CyberDIP可以将USB串口发来的指令翻译成相应的二维运动与点击操作,模拟单指对屏幕的操作。 结合图像处理算法,CyberDIP可以实现触屏手机上游戏的自动攻略功能。
- 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 4 + 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 for iOS devices and Total Control for Android devices.
- Video Input: Read image sequences from files.
- Game Controller: User defined game controller, change this to play different games.
- Install Visual Studio (≥2013)
- Install Qt and Qt VS Add-In
- Install git for windows
- Clone this project using script below at git bash:
git clone https://github.com/leofansq/Automatic-Puzzle-Solver.git
- (If necessary)Install Driver for CH340 Chipset after CyberDIP connected. (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插件
- 在一个恰当的目录中打开git bash并输入以下命令:
git clone https://github.com/leofansq/Automatic-Puzzle-Solver.git
- 连接CyberDIP,如有必要则安装CH340 芯片组驱动,驱动文件包含在CH340文件夹中。
- 将 '3rdparty/x64' (默认x64,32位操作系统添加 '3rdprty/x86')加入系统环境变量 'Path' 中(注意不要清空原有内容)
- 使用VS打开工程文件 qtCyberDip.sln, 并按照 stdafx.h 中的说明继续配置
- All the code for the algorithm is in the usrGameController.h 和 usrGameController.cpp two files
- In the process, we have tried several methods.Some of the operable versions are stored in folder previous-version
The source of this project is SJTU digital image processing. The main hardware and software are done by course teachers and teaching assistants. I and the team members only completed the algorithm part of the puzzle implementation. Original project address: https://github.com/LostXine/qtCyberDIP.git