The goal of this project is to automatically produce an SGF game record from an image stream.
"kifu" is the Japanese go term for game record. http://senseis.xmp.net/?GameRecord
The program detected the intersections and superimposed all the blue dots.
This software is licenced under the GNU General Public License (GPL)
OpenCV is awesome!!
To find all the points in a completely automated fashion, here's my recipe:
- find all the closed polygons with 4 sides. (this step is taken from the OpenCV example code)
- discard all polygons whose area is more or less than 2 std deviations from the median area
- Compute the convex hull of the set of points of the remaining quadrilaterals
- find the four corners by discarding points in the convex hull that form a straight line. (this step needs some cleaning up)
- compute a homography matrix (H) using the four corner points that correspond to the four corners of an ideal go board.
- use H to transform all the vertices of the ideal go board into the image coordinates
If you find this program useful, please shoot me an email at firstname.lastname@example.org
Using the Point Grey Camera The go board measures 17x18 inches With a 16mm lens, 91 inches above the ground, we just barely get the whole board in the frame.
I've ordered a 12mm lens, so we'll see how that works.