tensorflow_chessbot
tensorflow_chessbot copied to clipboard
Predict chessboard FEN layouts from images using TensorFlow
Could be upgraded to read all images in a PDF and generate FENs. Could then replace the subscription based chessvision.ai
https://i.redd.it/yrl4gdw8iml31.jpg https://i.redd.it/n66usnoq38m31.png https://i.redd.it/nq65jjiohfm31.png Why can't the bot detect a chessboard in the images above? import subprocess, os r = subprocess.check_output("cd C:\\Users\\Raymond\\Desktop\\Chess Bot\\tensorflow_chessbot-chessfenbot && tensorflow_chessbot.py --url https://i.redd.it/yrl4gdw8iml31.jpg", shell=True) the code above...
Found this on the [Sunfish](https://github.com/thomasahle/sunfish) readme ``` 8 ♖ ♘ ♗ ♕ ♔ ♗ · ♖ 7 ♙ ♙ ♙ ♙ ♙ ♙ ♙ ♙ 6 · · · ·...
[Here's an example.](https://www.reddit.com/r/chess/comments/9a0vi1/black_just_captured_a_bishop_on_h3_go_ahead_and/e4rvdhs/) This is most likely caused by #1.
Bot doesn't seem to trigger on https://www.reddit.com/r/chess/comments/6b9jdp/missed_this_mate_in_47_instead_played_the_much/ link: https://i.reddituploads.com/b68ad7d83e7d40e59390c318eff81262?fit=max&h=1536&w=1536&s=9c6e03a131d72087730dc848d5787e23 Possibly due to the parameters passed, add a check for this
say `rnbqkbnr/pp1ppppp/2p5/8/4P3/8/PPPP1PPP/RNBQKBNR w KQkq -` for Caro-Kann
Arguably given enough nodes and training data a neural network would eventually evolve the concept of counting; perhaps until then it makes sense for training data to include piece counts...
Brought to attention by one user replying to bot with an image expecting it to respond. Could potentially check comments that call out to /u/ChessFenBot with images in them, and...
Instead of manually adding images with the corrected fen to datasets, write a little praw script that scrapes replies to chessfenbot with corrected fens, for now have a human sanity...
Format is `http://img.youtube.com/vi//0.jpg` 1/2/3 thumbnails are not full-size So for [this](https://www.reddit.com/r/chess/comments/46h4o7/inspirational_maurice_ashley_speech_for_football/) post, the video url https://www.youtube.com/watch?v=A8ppOFLpSYM becomes http://img.youtube.com/vi/A8ppOFLpSYM/0.jpg