
ZahlenZebra
ZahlenZebra is small educational game that attempts to teach basic arithmetics in a playful way.
It is a game that teaches arithmetics and the gameplay is as follows. The player is given an arithmetical problem, that is solved by providing the right answer. These are simple tasks, such as 5 + 2 = ?. However, the answer is not given by selecting or clicking a dedicated user interface element. The player has to hold the correct number into the camera. The camera then recognizes the number and confirms whether the arithmetic problem was solved correctly.
This program was written in Processing 3 and uses the openCV library. In order to achieve this kind of number detection, each number was assigned a specific colour. These colours were then associated as the groundtruth for each number.
The interface of ZahlenZebra shows a small red dot in the center. This red dot signifies the pixel, of which the Processing code reads the colour values from. If the colour values match a threshold of the previously set groundtruths, it is recognized as the associated number, and the arithmetic problem is resolved.