GithubHelp home page GithubHelp logo

msdwsmsa / iris-detection-using-py-mediapipe Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kazuhito00/iris-detection-using-py-mediapipe

0.0 0.0 0.0 2.35 MB

MediaPipeのIris(虹彩検出)をPythonで動作させるデモです。

License: Apache License 2.0

Python 100.00%

iris-detection-using-py-mediapipe's Introduction

⚠Attention⚠

MediaPipe 0.8.8 からFaceMeshにrefine_landmarksオプションが追加されました。
このオプションを有効化すると虹彩の検出も同時に実施できるようになります。
特別な理由がない限り、Kazuhito00/mediapipe-python-sampleのFaceMeshを参考にすることをお勧めします。

iris-detection-using-py-mediapipe

MediaPipeのIris(虹彩検出)をPythonで動作させるデモです。
MediaPipeのFace Meshで顔のランドマークを検出し「iris_landmark.tflite」を用いて虹彩の検出をしています。

8p6lo-slci5

Requirement

  • mediapipe 0.8.1 or later
  • OpenCV 3.4.2 or later
  • Tensorflow 2.3.0 or Later

mediapipeはpipでインストールできます。

pip install mediapipe

Demo

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

python demo.py

デモ実行時には、以下のオプションが指定可能です。

  • --device
    カメラデバイス番号の指定
    デフォルト:0
  • --width
    カメラキャプチャ時の横幅
    デフォルト:960
  • --height
    カメラキャプチャ時の縦幅
    デフォルト:540
  • --max_num_faces
    顔の検出最大数
    デフォルト:1
  • --min_detection_confidence
    検出信頼値の閾値
    デフォルト:0.7
  • --min_tracking_confidence
    トラッキング信頼値の閾値
    デフォルト:0.7

ToDo

  • 焦点距離から深度を推定するオプションを追加

Reference

Author

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

License

iris-detection-using-py-mediapipe is under Apache-2.0 License.

また、女性の画像はフリー素材ぱくたそ様の写真を利用しています。

iris-detection-using-py-mediapipe's People

Contributors

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