Tim M 57b5cefde5 Updated all `.md` files to contain newest image 2 lat temu
..
Demo 6c20909726 Adding Chrome Dino Game player bot code file 3 lat temu
README.md 57b5cefde5 Updated all `.md` files to contain newest image 2 lat temu
Trex.py 6c20909726 Adding Chrome Dino Game player bot code file 3 lat temu
requirements.txt 6c20909726 Adding Chrome Dino Game player bot code file 3 lat temu
tRexDark.jpg 6c20909726 Adding Chrome Dino Game player bot code file 3 lat temu
trex.png 6c20909726 Adding Chrome Dino Game player bot code file 3 lat temu

README.md

T-Rex Game Bot using Feature Matching in OpenCV

This repository contains code for How to build Chrome Dino game bot using OpenCV Feature Matching blogpost.

A bot to automate Chrome Dino game using Feature Matching, AutoPyGUI and MSS.

Install required packages

download

pip install -r requirements.txt

Execution Guideline

  • Position chrome window to the right half of the screen.
  • Open terminal/powershell on the left half as shown below.
  • Navigate to the working directory and run the script.

T-Rex Bot Demo

The obstacle detection area should look something like the image shown below. If not, play with the box height percentage and check if display auto scaling is ON. Further instruction has been provided within the code.


Detection_area

AI Courses by OpenCV

Want to become an expert in AI? AI Courses by OpenCV is a great place to start.