GithubHelp home page GithubHelp logo

tsugibayashi / create_shogi_pieces Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 16 KB

将棋駒の画像を作成するためのソフトウェア

License: Apache License 2.0

Python 96.33% Shell 3.67%
myshogi yaneuraou

create_shogi_pieces's Introduction

create_shogi_pieces

概要

本ソフトウェアを使って、将棋駒の画像、および、MyShogi用の将棋駒の画像を作成することができます。

対応環境

  • Ubuntu 18.04

前提作業

実行する前に、以下のパッケージをインストールして下さい。

  • python3
  • python3-opencv
  • python3-pil
  • python3-numpy

また、下記を実行し /usr/bin/python3.6 を選択することによって、 python3をデフォルトのpythonにすることができます。

$ sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.6 1
$ sudo update-alternatives --install /usr/bin/python python /usr/bin/python2.7 2
$ sudo update-alternatives --config python

使い方

(1) 作業用ディレクトリに移動し、本レポジトリを取得します。

$ cd <作業用ディレクトリ>
$ git clone https://github.com/tsugibayashi/create_shogi_pieces

(2) スクリプト "create_shogi_pieces.sh" を実行し、画像を生成します。

$ cd create_shogi_pieces/
$ ./create_shogi_pieces.sh

(3) ./images/ に移動し、MyShogiで使用したい画像データをコピーします。

$ cd images/
$ cp -pv piece_v1_776_636.png <MyShogiのインストール先>/image/
$ cp -pv piece_v2_776_636.png <MyShogiのインストール先>/image/
$ cp -pv piece_v3_776_636.png <MyShogiのインストール先>/image/

各画像ファイルの説明

ファイル名 説明
piece_v1_776_636.png 二文字駒の画像
piece_v2_776_636.png 一文字駒の画像
piece_v3_776_636.png 英文字駒の画像

ライセンス

Apache-2.0 License

以上

create_shogi_pieces's People

Contributors

tsugibayashi avatar

Stargazers

 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.