
Internship report: Solving a game of Qwirkle with Custom Vision & OpenCV
July 2nd, 2021This 50-day internship project investigated using artificial intelligence to determine optimal moves in the board game Qwirkle, combining computer vision technologies with game logic algorithms. This contribution comes from Evi Leroy at VIVES Hogeschool.
Colour and shape detection
Rather than training Custom Vision to identify colour-shape combinations separately, the team used pixel analysis at bounding box centres, converting RGB values to HSV colour space for accurate colour determination independent of lighting conditions. Custom Vision was trained on six shape categories using approximately 53 photos per classification, achieving reliable performance through variable-distance training samples.
Perspective correction and preprocessing
OpenCV handled perspective correction before Custom Vision analysis. The preprocessing pipeline included edge detection, contour analysis, and Hough line detection to orient game boards correctly for recognition.

Brute-force optimisation for maximum points
A brute-force algorithm evaluated all possible tile placements, scoring combinations based on Qwirkle's point system and identifying sequences yielding maximum points. The three-phase methodology — research, training, and implementation — demonstrated how Custom Vision API and OpenCV can work together for practical game-solving applications.
Explore more
Internship report: Can an AI play Rummikub?
An internship project exploring whether AI can play Rummikub by combining computer vision with Monte Carlo Tree Search.

Build your own image dataset with Bing Image Search API
A step-by-step Python guide for building your own image dataset using the Bing Image Search API — from search and download to storing results in Azure Machine Learning Studio.

Bachelor's thesis: Converting sign language into text using AI
We co-promoted a bachelor's thesis on using image recognition AI to convert Flemish Sign Language into written text — comparing Azure Custom Vision, Google AutoML Vision, and Amazon Rekognition.
