Skip to content

Geofany17/Robot-Checkers-Player

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

Robot-Checkers-Player

This is the code for my Final Thesis Project about Robot playing Checkers Game. It uses Python, OpenCV, and uses a Cartesian/Gantry Robot model that operates using GRBL. The camera is placed on top for detection of boards and pieces. I used Visual Studio 2019 to write the code as well as the Arduino IDE to control the motors for each axis.

For a demo, see here: https://www.youtube.com/watch?v=_FilVqGszE8

Thanks for:

Checkers AI and Image Processing that I modified for my own use:

https://github.com/Dandoko/quba_robotic_arm/blob/master/computer-vision/checkers.py

https://github.com/Dandoko/quba_robotic_arm/blob/master/computer-vision/image_process.py

The following is a picture of the Board when detecting Pieces. Where the Red Pieces played by humans are marked with the number 20 and the Blue Pieces marked by the number 10 will be played by the AI.

codeboard

The following is a display of the Board using the warpPerspective method from OpenCV to detect the Board and also the detection of Pieces using the cv2.circle method combined with red and blue color detection. The code can be seen in the file Frame_Perspective.py

Circle Finder