This program connects to an Android device using ADB (Android Debug Bridge), captures screenshots, and processes these images using OpenCV. It includes functionalities for image matching and type/depth/resolution consistency checks.
- Python 3.x
- OpenCV
- NumPy
- adbutils
- ADB (Android Debug Bridge)
- Install Python from the official website.
- Install ADB on your system. Follow the instructions here to set it up.
- Clone this repository and navigate to the project directory:
git clone https://github.com/akaya0/dokkan-bot.git cd dokkan-bot
- Install the required Python libraries using pip:
pip install opencv-python-headless numpy adbutils
- Ensure your Android device is connected to your computer with USB debugging enabled.
- Choose the level to farm
- Run the script:
python main.py
- Device not found: Ensure that your device is connected and USB debugging is enabled. Run
adb devices
to check if your device is listed. And check for other adb instances. - Templates not recognized: Even though there are error checks your device might need their own templates, replace accordingly. (and post an issue for it so I can check it out)
- Virtual Environment: I strongly advice using conda/venv, because i got no clue what im actually doing. 🫡❤️
- Tournament: I think the most important one is to add a tournament support, I mean at a normal rate there's no way to beat it otherwise?!
I'm pretty new to image recognition and such, and this script seems really slow (for just matching grayscales yk). This is most likley because this is using mainly the CPU? I'm currently reading through the opencv docs and I think there are ways to use a dedicated GPU to handle the image processing. So we will see--
This software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose, and noninfringement. In no event shall the authors be liable for any claim, damages, or other liability, whether in an action of contract, tort, or otherwise, arising from, out of, or in connection with the software or the use or other dealings in the software. Use this script at your own risk.
This project is licensed under the MIT License.