FaceDetection-Anti-Spoof-Demo


なりすまし検出(anti-spoof-mn3)のWebカメラ向けデモです。
モデルはPINTO_model_zoo/191_anti-spoof-mn3からONNX形式のモデルを使用しています。

Requirement

  • mediapipe 0.8.8 or later
  • OpenCV 3.4.2 or later
  • onnxruntime 1.8.1 or later

Demo

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

python demo_anti_spoof.py
  • –device
    カメラデバイス番号の指定
    デフォルト:0
  • –width
    カメラキャプチャ時の横幅
    デフォルト:1280
  • –height
    カメラキャプチャ時の縦幅
    デフォルト:720
  • –model_selection
    モデル選択(0:2m以内の検出に最適なモデル、1:5m以内の検出に最適なモデル)
    デフォルト:0
  • –min_detection_confidence
    検出信頼値の閾値
    デフォルト:0.7
  • –as_model
    なりすまし検出モデルの格納パス
    デフォルト:anti-spoof-mn3/model_float32.onnx
  • –as_input_size
    なりすまし検出モデルの入力サイズ
    デフォルト:128,128

Reference

Author

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

License

FaceDetection-Anti-Spoof-Demo is under MIT License.

GitHub

View Github