Giter Club home page Giter Club logo

shogi-camera's Introduction

Shogi Camera

Shogi Camera is an experimental project which aims to extract shogi board information from pictures of shogi games.

hero

System Requirements

To execute on a native machine

  • Python 3.5
  • Keras 2
  • Tensorflow 1.1.0
  • scipy, numpy, scikit-learn
  • hdf5, h5py

To execute on a Docker container (without GPU)

  • Docker Engine

To execute on a GPU container

fits for AWS p2 instance

  • GPU (NVIDIA Tesla K80)
  • CUDA Toolkit / CUDA Driver
  • Docker Engine
  • nvidia-docker

Quick Start

$ python3 cli.py predict {image_file_path}

or on a Docker container,

$ docker run -it -v $PWD:/app naoys/shogi-camera:nogpu python3 cli.py predict {image_file_path}
$ docker run --runtime=nvidia -it -v $PWD:/app naoys/shogi-camera:latest python3 cli.py predict {image_file_path}

Prediction Details

The prediction consists of two phases.

  1. detecting a shogi board precisely from the picture
  2. predicting single cell information using a pre-trained NN model and repeating it cell by cell

1. board detection

see the notebook or a program

2. cell prediction

https://github.com/na-o-ys/shogi-camera/blob/master/shogicam/predict/_predict_board.py

Model

The simple model contains three convolutional layers and two fully connected layers.

See the notebook or a program.

shogi-camera's People

Contributors

na-o-ys 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.