Domino Assistant

During studies I had a project to recognize domino pieces on a board by computer vision with openCV. Based on the pieces owned by the player and the shared pieces on the board the assistant had to recommend a move for the player.

Source Photo

Based two photo shots we were able to produce a diff by subtracting the photos. This gave us a single domino piece to analyse.

Diff

Via image processing we were able to extract domino halfs and count the individual pips. First we had to scrape the half.

Extracted image half with pips

Then we applied common morphological transformations on the image that gave use really clean outputs to count the pips.

Optimized half ready for counting pips

Based on this information were able to draw an overlay.

Overlay with halfs

The resulting image is a recommended move by the computer. It tells the user the place his 4|1 half onto the 4|1 on the board.

This project demonstrates applied computer vision to the domino game. The whole process is described the the PDF (in german).

It’s open source

If you have found a spelling error, please, notify us by selecting that text and pressing Ctrl+Enter.

Spelling error report

The following text will be sent to our editors: