Computer Vision pipeline that connects live video feed of battleship board to game-state to be interpreted by internal game simulation
Print out aruco.pdf and paste the markers on the board similar to the fashion shown below.
Make sure a video camera is also connected to the current system and place it infront of the Battleship board in question
The Battleship folder contains the file named calibrate.py
. Adjust the offsets at the top of the file to fit the current arUco marker setup.
The program runs through game.py
located in the Battleship folder. This program takes the following arguments.
--playermode
with 3 options,hvh
,hva
, andava
representing the modes human vs human, human vs ai, and ai vs ai--player1_usecamera
with optionsyes
orno
that enables or disables the camera. The default option is no.--player2_usecamera
with optionsyes
orno
that enables or disables the camera. The default option is no.
- conversion of bottom gameboard
- More robust AI (just guesses random spot right now)
- More accurate conversion of top board