Giter VIP home page Giter VIP logo

chesster's Introduction


Chesster
Chesster

From Screenshot to Chessboard

A .NET Core library with functionality to take a simple screenshot of a chessboard to a fully-evaluated position.

Travis CI


Main Features

  • Chessboard extraction from an input image
  • Position recognition using a neural network
  • Orientation prediction of the board (black- or white-perspective) using a neural network
  • Evaluation and move recommendation using the Stockfish engine

Installing

The source code can be cloned via GitHub. A NuGet package is planned for the future.

Pre-trained models for the utilized networks can be downloaded from the releases. To allow Chesster to find the models, they will have to be placed inside an asset/ folder in the build folder. Chesster will automatically generate that folder when built, and is also the location where it stores source images and training data.

Documentation

The full docs can be found here!

Predicting a board from an input image is as easy as calling:

Board board = BoardVision.PredictBoard(imagePath);

From there the position can be evaluated as follows:

Evaluation evaluation = Evaluator.EvaluateWhite<StockfishEngine>(board);

Since it cannot be inferred which player's move it is from the image, the user will have manually evaluate both sides potentially.

Examples

Examples are being worked on! Stay tuned!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.