I think all of you are found of chrome dino when your internet is down. I always wonder that How much high score one can get in CHROME-DINO game So, I thought of making a programm in ComputerVision that can play CHROME-DINO game and get me the highest score(IT CAN ACHIEVE).
Note : As OpenCV is slow, it will take time to start to for instance you have to play for 2-3 seconds and then CV will start and play for you.
-
First make sure that you are in ChromedinoCV Directory or type
cd ChromedinoCV
Run this command in terminal
git clone https://www.github.com/sciencelabwork/ChromedinoCV.git
Now Install Dependencies required by typing
pip install -r requirements.txt
Now to start Automation
python dinoplay.py
-
This is for fine tunning, First run the code if it works fine then no need to go for this step and it dosen't work then you need to follow the steps given below.
- Go to CHROME-DINO (Fullscreen Version) and start the game by clicking spacebar.
- Now measure the centimeters from left side of your screen and top of your screen
- Multiply by 58 and set that value to top and left variable.
- If that dosen't work then you need to use brute foce testing and setting up the value.
Above👆 were the only Two Steps You need to Follow. Enjoy You Automation.
Highest Score I can Achieved was 34790 and few minutes back I have Achieved was 2144. As you can see in below Screenshot 👇.
"All rights reserved & logo shouldn't be remade without prior permission"