jelonmusk / tetris-count

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

License:MIT License


Languages

Language:Python 100.0%