Giter Site home page Giter Site logo

chess-id's Introduction

Chess ID

Forked repository to identify chessboard pieces for Chessbot project. Article about original repo: https://medium.com/@daylenyang/building-chess-id-99afa57326cd

The purpose of this project is to return the location of all pieces on the chessbot chessboard given a top-down image of the chessbot chessboard. The location of the board will be determined using two OpenCV ArUco markers located at opposite corners of the board. Based on the lcoation and orientation of these markers, each square will be segmented into separate images and inputted to a trained neural network to identify the piece.

Changes from original repository:

  • Modifying the original board detection algorithm to be more effective. However, it will only work for a chessboard with AruCo markers at the corner for identification (does not generalize to all chessboards like original repository)

  • Porting chesspiece classification neural network to Keras/Tensorflow

  • Replacing trained model used for transfer learning from AlexNet to VGG16

  • Building python package to predict chessboard piece positions to import into other python projects

  • Modularizing the package

  • Using pipenv as python package manager

Dataset from original repository

The dataset used to train the model is available at the following link. This dataset was made available by the original author of this repository. https://www.dropbox.com/s/618l4ddoykotmru/Chess%20ID%20Public%20Data.zip?dl=0

Training

To train the model, first train only the new untrained layers. Then, train all the layers in the VGG model to fine tune the model. The train file supports command line arguments to load a model and to specify the number of layers to train.

chess-id's People

Contributors

daylen avatar swapnilpande avatar

Watchers

 avatar  avatar

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.