Skip to content

MediaPipeを用いたハンドジェスチャーによる簡単なマウス操作を行うプログラムです。

License

Notifications You must be signed in to change notification settings

Kazuhito00/simple-virtual-mouse-using-mediapipe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple-virtual-mouse-using-mediapipe

MediaPipeを用いたハンドジェスチャーによる簡単なマウス操作を行うプログラムです。
マウス移動:手の移動
マウス左クリック:手をパーからグーに変える

Requirements

  • mediapipe 0.8.1 or Later
  • PyAutoGUI 0.9.52 or Later
  • OpenCV 3.4.2 or Later
  • Tensorflow 2.3.0 or Later

Demo

Webカメラを使ったデモの実行方法は以下です。

python app.py

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

  • --device
    カメラデバイス番号の指定 (デフォルト:0)
  • --width
    カメラキャプチャ時の横幅 (デフォルト:960)
  • --height
    カメラキャプチャ時の縦幅 (デフォルト:540)
  • --min_detection_confidence
    検出信頼値の閾値 (デフォルト:0.7)
  • --min_tracking_confidence
    トラッキング信頼値の閾値 (デフォルト:0.5)
  • --margin_width
    ハンドジェスチャーの操作範囲(横幅のマージン割合)(デフォルト:0.2)
  • --margin_height
    ハンドジェスチャーの操作範囲(縦幅のマージン割合)(デフォルト:0.2)

Reference

Author

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

License

simple-virtual-mouse-using-mediapipe under Apache-2.0 License.

About

MediaPipeを用いたハンドジェスチャーによる簡単なマウス操作を行うプログラムです。

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages