Giter Club home page Giter Club logo

facedetection-image-overlay's Introduction

FaceDetection-Image-Overlay

顔検出を行い、検出した顔の上に画像を重ねるデモです。
顔検出はStar-Clouds/CenterFaceを利用しています。
nwgqx-oy39q

Requirement

  • OpenCV 4.2.0 or later

Demo

デモの実行方法は以下です。

python demo.py

デモ実行時には、以下のオプションが指定可能です。
また、「image」ディレクトリの画像を差し替えることによって重畳画像を変更できます。
(複数枚格納した場合はアニメーションを行い、1枚であれば固定画像となります)

  • --device
    カメラデバイス番号の指定
    デフォルト:0
  • --width
    カメラキャプチャ時の横幅
    デフォルト:960
  • --height
    カメラキャプチャ時の縦幅
    デフォルト:540
  • --ceil
    画像重畳表示時の一辺の長さの切り上げ値
    デフォルト:50
  • --image_ratio
    画像の一辺のサイズ補正
    デフォルト:1.2
  • --x_offset
    顔へ重畳表示する際の画像のX座標オフセット
    デフォルト:0
  • --y_offset
    顔へ重畳表示する際の画像のY座標オフセット
    デフォルト:-30
  • --use_model
    顔検出に使用するモデルの選択(centerface, dbfaceが使用可能)
    デフォルト:centerface

Reference

Author

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

License

FaceDetection-Image-Overlay is under MIT license.
※Imageディレクトリ内の画像はMITライセンス対象外です

License(CenterFace, DBFace)

CenterFace is under MIT license.
DBFace is under MIT license.

facedetection-image-overlay's People

Contributors

kazuhito00 avatar

Stargazers

 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.