Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

daniel-bandstra/watchGo

Repository files navigation

watchGo

Find a Go board in an image and read the game position. Written with Python, Numpy, and OpenCV.

Cascade classifiers are typically used to identify things like faces or stop signs in an image. This program uses three different cascade classifiers to find: black stones, white stones, and empty intersections on a Go board.

For more information on training a custom Haar cascade classifier see here and here.

The function readBoard(image) processes the image and returns a numpy array representing the board, and an array of the coordinates of the four corners of the board.

The function watchBoard() shows a video feed with the corners of the board marked with red dots. It also shows a diagram of the current board position. These update after every time motion is detected around the board.

Here's a screenshot of watchBoard() at work: screenshot

About

Go board recognition: Find a Go board in an image and read the game position. Written with Python and OpenCV.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

AltStyle によって変換されたページ (->オリジナル) /