A simple Python + OpenCV script to count the number of Tetris blocks in an image.
All the dependencies and required libraries are included in the file requirements.txt
See here
- Clone the repo
$ git clone https://github.com/jelonmusk/tetris-count.git
- Change your directory to the cloned repo and create a Python virtual environment named 'test'
$ mkvirtualenv test
- Now, run the following command in your Terminal/Command Prompt to install the libraries required
$ pip3 install -r requirements.txt
- Open terminal. Go into the cloned project directory and type the following command:
$ python tetris.py
Feel free to mail me for any doubts/query :email: jelonmusk@gmail.com
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!
Made with ❤️ by JShaikh
MIT © JShaikh