Code Monkey home page Code Monkey logo

image-capture-class-annotation's Introduction

image-capture-class-annotation

領域を指定し、キーを入力することで画像を保存するツールです。
クラス分類用のデータセット作成を想定しています。
njvnq-h1sa6

Requirement

  • OpenCV 3.4.2 or later

Usage

実行方法は以下です。
起動後はマウスクリック4点で切り出し箇所の指定を行い、
キー(0~9、a~z)を押下することで「capture」ディレクトリに画像を保存します。
0~9は00~09ディレクトリを作成し、a以降は10から連番のディレクトリを作成します。

python image-capture-class-annotation.py

オプションとして以下を指定できます。

  • --device
    入力デバイス(cv2.VideoCapture)
    デフォルト:0
  • --width
    入力デバイスの幅
    デフォルト:640
  • --height
    入力デバイスの高さ
    デフォルト:480
  • --crop_width
    生成画像の幅
    デフォルト:96
  • --crop_height
    生成画像の高さ
    デフォルト:96
  • --extension
    生成画像の拡張子
    デフォルト:jpg
  • --start_count
    ファイル連番の開始数
    デフォルト:0

Author

高橋かずひと(https://twitter.com/KzhtTkhs)

License

image-capture-class-annotation is under MITLicense.

image-capture-class-annotation's People

Contributors

kazuhito00 avatar

Stargazers

 avatar  avatar  avatar  avatar  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.