/Image-Recognition-Bot-Games

Recopilations of bots that play games with image recognition

Primary LanguagePythonMIT LicenseMIT

Image Recognition-Bot-Games

Collections of bots that automatically play games with image recognition.


Piano Tiles Bot:

Piano Tiles Bot Demo The bot automatically locate the game in screen and identify the tiles. It then clicks on the tiles in the correct order. My score record with this bot is 3335 in this website.

An improvement to this bot is to use a neural network to identify the tiles. This will make the bot more robust to different screen resolutions and different game versions, and also make it more efficient.

You can find the code in pianoTiles_bot.py.

Feel free to try it out and beat my score!


AimBooster Bot:

AimBooster Bot Demo

The bot automatically locate the game in screen and identify the targets. It then clicks on the targets in the correct order. I don't have a score record with this bot because the bot works too well and doesn't miss any targets :)

You can find the code in aimbooster_bot.py and try it with this website.

Feel free to try it out and improve my code!


How to use

  1. Clone the repository
  2. Install the required packages with pip install -r requirements.txt
  3. Open the game that you want to play in your browser.
  4. I used this websites: Piano Tiles, AimBooster, but you can use any other website that you want while the game screen is similar to these games. If the screen are not similar, you need to change the locator images in locator folder for a focus screenshot of these new screen games.
  5. Run the code with python aimbooster_bot.py or python pianoTiles_bot.py
  6. Press s to start the bot and q to quit the bot.
  7. Take fun beating scores!