raspberry-pi-news

Robotic Arm playing tic-tac-toe using image processing In Raspberry Pi @Raspberry_Pi #piday #raspberrypi

July 11, 2014 Kelly

Check out this awesome video of a Robotic arm playing tic-tac-toe using image processing in raspberry pi from Leroy Pereira.

This arm was built as part of our internship project at PCCE. We has interfaced a web-cam with the raspberry pi to detect the user’s move.The pi then detects how many pixels are red in color determining where the user has made his move. Once the move has been detected, Raspberry pi automatically directs the arm to move a piece to the appropriate position. The entire code is written in python. The tic-tac-toe algorithm is so designed that the user never wins.