Skip to content

A simple Python + OpenCV script to count the number of Tetris blocks in an image.

License

Notifications You must be signed in to change notification settings

jelonmusk/tetris-count

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TETRIS COUNT

A simple Python + OpenCV script to count the number of Tetris blocks in an image.

                                   

⚠️ TechStack/framework used

🔑 Prerequisites

All the dependencies and required libraries are included in the file requirements.txt See here

🚀  Installation

  1. Clone the repo
$ git clone https://github.com/jelonmusk/tetris-count.git
  1. Change your directory to the cloned repo and create a Python virtual environment named 'test'
$ mkvirtualenv test
  1. Now, run the following command in your Terminal/Command Prompt to install the libraries required
$ pip3 install -r requirements.txt

💡 Working

  1. Open terminal. Go into the cloned project directory and type the following command:
$ python tetris.py

🔑 Results

Our application found 6 Tetris blocks in the image.




👏 And it's done!

Feel free to mail me for any doubts/query :email: jelonmusk@gmail.com

🤝 Contribution

Feel free to file a new issue with a respective title and description on the the TETRIS-COUNT repository. If you already found a solution to your problem, I would love to review your pull request!

❤️ Owner

Made with ❤️  by JShaikh

👍 Credits

👀 License

MIT © JShaikh