ChessQ Back to recognition

About

ChessQ turns any chess picture (real-life chessboard photos and 2D chess diagrams) into a digitized, editable chess position.
You can then analyze directly on Lichess, or copy/paste the FEN notation.

Created by Joël Seytre, it builds on the ChessQueries paper and research project.
ChessQ Lite also powers image import in the Lichess Board Editor.

Frequently asked questions

How to

What are these models useful for?

You can take a quick picture of a chess position, from a friendly match or a chess book, and have it ready to analyze yourself or with a computer!

This is integrated with Lichess, or you can use the resulting FEN to analyze it in your favorite chess software.

Which angle should the picture be taken from?

The models are trained to support most angles. In practice, we find that the best results are from pictures that are taken directly from a player's perspective, with no hidden piece or anomalous lighting effects.

What is a FEN position?

The Forsyth-Edwards Notation (FEN) is a standard way to record a chess position in a single line. This is the example of the FEN of the starting position:

rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1
Do you support 2D chess diagrams or real-life chessboard photos?

Yes, ChessQ supports both. You can upload a diagram or a photograph of a physical board.

What is the difference between ChessQueries and ChessQ?

ChessQ builds on ChessQueries with additional proprietary training data and further model tweaks and improvements. The original ChessQueries models were trained only on public data: ChessCog, ChessReD, and SLCC. ChessQ achieves more robust performance across diverse chess board setups and 2D chess diagrams.

Lichess integration

Why is the output sometimes different from the Lichess website?

Lichess uses the smaller ChessQ Lite model. This website defaults to the larger ChessQ model. You can choose a model in Advanced settings, including ChessQ Lite and the original paper models.

Is it normal that ChessQ inference runs faster than the Lichess board editor integration?

Lichess runs the model on your own hardware. It downloads the model on first use, and recognition can take several seconds depending on your device. ChessQ runs recognition on a server GPU.

Orientation and future work

Can the board automatically match the photograph’s perspective?

Select ChessQ Lite V5 in Advanced settings to choose the initial White or Black perspective automatically. Other models start from White’s perspective. Use Flip board to change the view at any time. Flipping the view keeps the position and FEN unchanged. To correct the direction the pawns move, use Pawn Direction to reverse the rank and file labels while keeping the pieces in place. This updates the position and its exports.

Are scanned scoresheets to FEN or video to PGN planned?

Not currently. If you are interested in building such a product together, please reach out to contact@chessq.org.

Licensing

Can I use ChessQ in the way Lichess does? Do I need a license?

The published ChessQueries code and model weights, including ChessQ Lite, are shared under the PolyForm Noncommercial License 1.0.0. Non-commercial research projects and non-profits like Lichess are welcome to use the models with proper credits. For commercial use, please reach out to contact@chessq.org.