An autonomous blackjack robot built with a LEGO Mindstorms EV3 that deals, scans, and moderates a blackjack variant played with UNO cards. A wheel-based dispenser feeds single cards into a scanning tray, where a cartesian gantry, homed and calibrated via touch sensors, moves a brightness sensor across the card and streams the raw pixel data over a socket to a PC.
On the PC, the flattened brightness readings are reconstructed into a 2D image, cleaned up (hole filling, histogram-based thresholding, edge-artifact removal, rescaling), and recognized with a digits-only Tesseract/Tess4J OCR setup; the recognized card value is sent back to the EV3.
The EV3 side (leJOS, Java) acts as the dealer: it runs the blackjack game logic for a table of four players, takes the player count via the brick’s buttons, reads hit/stand decisions from a floor-mounted touch sensor, and ejects each dealt card to the right player with a lever mechanism. Built as part of the LEGO Mindstorms Praktikum.
Technologies: LEGO Mindstorms EV3, leJOS (Java), Tess4J/Tesseract OCR, sockets
