Giter VIP home page Giter VIP logo

chess_vision's Introduction

Chess Position & Type Recognition System (SRTP)

  • Developed a system that recognizes chess positions & types based on real-time captured images
  • Used 1) Hough Circle algorithm for recognizing chess locations, and 2) a deep CNN model with Red-Black enhancement for recognizing chess types
  • Achieved an identification accuracy of over 99.5%
  • Demos for the entire SRTP, which included 3 studies, with the chess_simulator, and alphacc_zero.

Usage & Environment

  • Usage:
    • init_mkdir.py to create repo needed
    • camera.py for capturing images which are saved to ./test_image_process/systemCamTest
    • circle_crop.py for croping chesses which are saved to ./test_image_process/image_circle_test
    • Next step requires HUMAN to move cropped chesses to corresponding folder under ./data_pre_360
    • generate_data.py to generate training data in ./data_360
    • trainModel.py to train deep CNN models which are saved to ./model_save
    • circle_multi.py to test the model using images in ./webcam
    • server_one.py to run the chess vision TCP server for communication with Qt digital twin platform
  • Environment:
    • python 3.6
    • tensorflow 2.4
    • keras 2.4
    • opencv
    • pillow
  • Whole Structure

Screenshot 2022-05-27 180653

  • DataGenerator

1

  • RedBlackReinforcement

1

  • RealChessboardImage

2

  • HoughCircleProcess

2

  • ChessLocationResult & ChessboardMatrixResult

4

chess_vision's People

Contributors

haodong2000 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.