Main Content

Using Python, OpenCV a projector and a webcam, our students created a tic tac toe game you can play on a video wall.

The Motive
One of the major set-backs of learning to code in a young age is the lack of visual feedback from your programs. Students often get dissapointed during their early steps in coding, as text based programs are not that exiting. Our goal was to fix that, by providing new ways to interact with projects that would otherwise seem like a coding-101 assingment.

The Idea
It’s no secret that computer vision is one of the decade’s hot topics, with augmented reality getting in our everyday lives with every day passing. After implementing a tic-tac-toe game as a hands-on project on Python programming, we thought: how about making the computer understand the symbols drawn on our whiteboard? That was the begining of CV-Toe.

Making a GUI
The first thing we needed was a nice User Interface to display on our whiteboard. It had to be simple enough for our students to understand, yet convinient and visually appealing. We used tkinter, a Python library for GUIs, to render the the grid and symbols, using a canvas and basic math, to scale to arbitary resolutions.

The computer vision
Alegendly. the most exciting part of the project was making the computer understand the video singal from the webcam observing the whiteboard. We used OpenCV, an open-source library for computer vision tasks.”

Link to article