Automate Chrome Dinosaur Game Using Python | OpenCV - Complete Tutorial (English)

preview_player
Показать описание
In this tutorial you will learn to implement an application to play your favourite 'Chrome Dinosaur' game automatically using Python language.

Chrome Dinosaur is a well known offline web browser game which is based on a simple story of avoiding a dinosaur from obstacles. People all over the world are wondering about the end of this specific game, since it can be played years of years without an end. This application is an attempt to play Chrome Dinosaur very easily and effectively rather than manual explicit controlling. In this tutorial there are few major functionalities have been implemented regarding to the automation control.

1. Detect obstacles and avoid them by jumping.
2. Detect jump attempts done by the dinosaur.
3. Count number of jumps which are completed at a given point of time.

Application is getting snapshots of screen continuously and cropping down the region of interest of game playing environment. Then that screen region is again going to crop down into two major sections; one for region of obstacle detection and other for region of jump attempt detection. The availability of collection of pixels is very much important when detecting presence of obstacles and jump attempts. To detect presence of obstacles and jump attempts, application uses contour based area calculations. Pynput and Pyautogui libraries are used to control the keyboard of PC virtually through the implementations and get screen screenshots respectively.

This tutorial is Inspired by a work of my dear teacher,
Mr. Thakshila Thilakanayake

Highly recommended for enthusiastic pythonists all over the world :)

Download the project
====================

Subscribe 'The Sineth' and hit on the bell icon.

Thanks for watching ❤
Рекомендации по теме
Комментарии
Автор

This tutorial is Inspired by a work of my dear teacher,
Mr.Thakshila Thilakanayake

TheSineth
Автор

Proud of you sine...
Speechless..
😘😘👊

washiniranasinghe
Автор

Download the project materials from below links.

TheSineth
join shbcf.ru