https://github.com/bhsh0112/gesturecontrolmac

https://github.com/bhsh0112/gesturecontrolmac

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (1.6%) to scientific vocabulary
Last synced: 9 months ago · JSON representation

Repository

Basic Info
  • Host: GitHub
  • Owner: bhsh0112
  • Language: Python
  • Default Branch: main
  • Size: 4.69 MB
Statistics
  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created about 1 year ago · Last pushed about 1 year ago
Metadata Files
Readme

README.md

0 GetStart

python>=3.8

0.1 安装pytorch

pytorch官网查找并安装与个人设备适配的pytorch版本

0.2 安装其他软件环境

运行:

pip install -r requirements.txt

0.3 快捷键设置

​ 用户可以通过修改shortcut.json中的内容,指明每一手势对应的快捷键,完成对快捷键的设置(支持的手势与快捷键见下表,可以对两个表格的内容进行排列组合设置)

0.4 代码运行

完备的参数设置:

python main.py --weights /path/to/weight --input_path /path/to/input --output_path /path/to/output

参数说明:

  • weights:手势检测所用的权重文件
  • input_path:继承自yolo,输入也可以是图像或视频,但在本项目的应用场景下,输出一般为摄像头(0)
  • output_path:可以将手势检测过程保存下来,但在本项目应用场景下无意义,所以这里默认不保存

综上,如果用户只想直接应用本项目,直接运行下面的命令就可以了:

python main.py

支持的手势

| 支持手势 | 命名 | | :--------: | :--: | | 打电话手势 | call | | 竖大拇指 | like | | 握拳 | palm | | 五指张开 | fist | | ok手势 | ok |

支持的快捷键

| 支持快捷键 | 命名 | | -------------------------- | ---------------------------- | | 打开资源管理器 | openfinder | | 单击鼠标 | mouseclick | | 滚轮上滚 | scrollup | | 滚轮下滚 | scrolldown | | 单击空格 | pressspace | | 打开访达 | openfinder | | 截屏并存储在剪切板 | takescreenshottoclipboard | | 切换到下一个最近使用的程序 | switchtonextrecentapp | | 焦点切换到桌面 | focusondesktop | | 打开日历 | opencalendar |

1 说明

1.1 多手势问题

​ 当输入中同时出现多种手势时,会自动选取置信度最高的一个检测结果作为最终的输出根据,并不存在同时完成多种快捷键的情况

Owner

  • Name: Shan Hao
  • Login: bhsh0112
  • Kind: user
  • Company: 北京航空航天大学

a students

GitHub Events

Total
  • Push event: 6
Last Year
  • Push event: 6

Dependencies

requirements.txt pypi
  • pyautogui *
  • ultralytics *