Show HN: My weekend project - Chessboard picture recognition
codebazaar.blogspot.com
Show HN: My weekend project - Chessboard picture recognition
1–10 of 57 posts
Re: Show HN: My weekend project - Chessboard picture recognition
#2It may be easier to just track the game state from the start instead of trying to identify the position of the board at a random snapshot in time.
Cool project though, seems like a good intro to image processing.
Re: Show HN: My weekend project - Chessboard picture recognition
#3I bet you could get away with determining the color of a corner square and assuming the rest.
Re: Show HN: My weekend project - Chessboard picture recognition
#4I don't know anything about "chess theory" but are there some squares that only certain pieces can get to? I don't think it's possible for a Knight to ever be on some squares, so maybe you could use logic like that to narrow down the piece detection. It may be easier to just track the game state from the start instead of trying to identify the position of the board at a random snapshot in time. Cool project though, s…
Re: Show HN: My weekend project - Chessboard picture recognition
#5Re: Show HN: My weekend project - Chessboard picture recognition
#6I don't know anything about "chess theory" but are there some squares that only certain pieces can get to? I don't think it's possible for a Knight to ever be on some squares, so maybe you could use logic like that to narrow down the piece detection. It may be easier to just track the game state from the start instead of trying to identify the position of the board at a random snapshot in time. Cool project though, s…
EDIT: Another feature ... in a properly set up board, the bottom right square is always white.
Re: Show HN: My weekend project - Chessboard picture recognition
#7"For example, the program is able to determine whether each square is white or black by calculating its average color and comparing it to the black and white colors" I bet you could get away with determining the color of a corner square and assuming the rest.
Re: Show HN: My weekend project - Chessboard picture recognition
#8"For example, the program is able to determine whether each square is white or black by calculating its average color and comparing it to the black and white colors" I bet you could get away with determining the color of a corner square and assuming the rest.
Re: Show HN: My weekend project - Chessboard picture recognition
#9If you're ok with helping the computer out a bit, you could put a very small matrix bar code (think QR Code) on top of each piece. Since there are 6 chess pieces and 2 colors, you could have a code for each piece in just a 2x2 matrix (4 dots / bits).
Otherwise, it seems like it may be very difficult, as I'm not even sure of what some of the black on black pieces are myself (bottom right).
Re: Show HN: My weekend project - Chessboard picture recognition
#10"For example, the program is able to determine whether each square is white or black by calculating its average color and comparing it to the black and white colors" I bet you could get away with determining the color of a corner square and assuming the rest.
He does say a little further on that he saw one or two errors when pieces of the opposing colour were on those squares. That's not so hard to correct if you've tried to detect every square but would be catastrophic if you only looked at one.