tsoj/Chess_diagram_to_FEN
Extract the FEN out of images of chess, xiangqi, or shogi diagrams.
This tool helps chess, xiangqi, and shogi enthusiasts or analysts convert images of board diagrams into a standardized text format called FEN (Forsyth-Edwards Notation). You provide an image file of a game diagram, and it outputs the FEN string, which describes the board position. It's designed for anyone who needs to quickly digitize board states from physical books, articles, or screenshots for analysis or database entry.
Use this if you need to convert an image of a chess, xiangqi, or shogi board diagram into a FEN string for digital use or analysis.
Not ideal if you need perfect accuracy for shogi diagrams, especially if pieces are held in hand, or if you need to process PGN game notation.
Stars
16
Forks
7
Language
Python
License
MIT
Category
Last pushed
Mar 11, 2026
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/ml-frameworks/tsoj/Chess_diagram_to_FEN"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Higher-rated alternatives
LeelaChessZero/lc0
Open source neural network chess engine with GPU acceleration and broad hardware support.
official-stockfish/nnue-pytorch
Stockfish NNUE (Chess evaluation) trainer in Pytorch
QueensGambit/CrazyAra
A Deep Learning UCI-Chess Variant Engine written in C++ & Python :parrot:
bagaturchess/Bagatur
Java Chess Engine (UCI compatible)
xqbase/eleeye
ElephantEye - a XiangQi (Chinese Chess) Engine for XQWizard with Strong AI