ai-virtual-mouse-controller 1.0.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ai_virtual_mouse_controller-1.0.1.dist-info/METADATA +130 -0
- ai_virtual_mouse_controller-1.0.1.dist-info/RECORD +27 -0
- ai_virtual_mouse_controller-1.0.1.dist-info/WHEEL +5 -0
- ai_virtual_mouse_controller-1.0.1.dist-info/entry_points.txt +2 -0
- ai_virtual_mouse_controller-1.0.1.dist-info/licenses/LICENSE +21 -0
- ai_virtual_mouse_controller-1.0.1.dist-info/top_level.txt +4 -0
- config.py +550 -0
- core/__init__.py +14 -0
- core/camera.py +205 -0
- core/click_burst.py +206 -0
- core/cursor_controller.py +305 -0
- core/finger_posture.py +131 -0
- core/gesture_detector.py +1056 -0
- core/hand_anchor.py +358 -0
- core/hand_mesh.py +804 -0
- core/hand_renderer.py +421 -0
- core/hand_tracker.py +238 -0
- core/hologram_gl_backend.py +993 -0
- core/hologram_overlay.py +894 -0
- core/perf_telemetry.py +166 -0
- core/runtime_settings.py +310 -0
- core/smoothing.py +233 -0
- core/ui_overlay.py +748 -0
- core/utils.py +126 -0
- main.py +47 -0
- services/__init__.py +1 -0
- services/virtual_mouse_service.py +839 -0
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: ai-virtual-mouse-controller
|
|
3
|
+
Version: 1.0.1
|
|
4
|
+
Summary: Controle de cursor por gestos da mao via webcam, com holograma 3D opcional.
|
|
5
|
+
Author: Guilherme Moraes Franco
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/ognistie/ai-virtual-mouse-controller
|
|
8
|
+
Project-URL: Documentation, https://ognistie.github.io/ai-virtual-mouse-controller/
|
|
9
|
+
Project-URL: Issues, https://github.com/ognistie/ai-virtual-mouse-controller/issues
|
|
10
|
+
Project-URL: Discussions, https://github.com/ognistie/ai-virtual-mouse-controller/discussions
|
|
11
|
+
Project-URL: Changelog, https://github.com/ognistie/ai-virtual-mouse-controller/blob/main/CHANGELOG.md
|
|
12
|
+
Keywords: computer-vision,gesture-recognition,mediapipe,mouse-control,accessibility,hologram
|
|
13
|
+
Classifier: Development Status :: 3 - Alpha
|
|
14
|
+
Classifier: Environment :: Console
|
|
15
|
+
Classifier: Intended Audience :: End Users/Desktop
|
|
16
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
17
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
18
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
19
|
+
Classifier: Operating System :: MacOS :: MacOS X
|
|
20
|
+
Classifier: Programming Language :: Python :: 3
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
24
|
+
Classifier: Topic :: Multimedia :: Video :: Capture
|
|
25
|
+
Classifier: Topic :: Scientific/Engineering :: Image Recognition
|
|
26
|
+
Requires-Python: <3.14,>=3.11
|
|
27
|
+
Description-Content-Type: text/markdown
|
|
28
|
+
License-File: LICENSE
|
|
29
|
+
Requires-Dist: opencv-python<5.0.0,>=4.10.0
|
|
30
|
+
Requires-Dist: mediapipe<0.11.0,>=0.10.18
|
|
31
|
+
Requires-Dist: pyautogui<1.0.0,>=0.9.54
|
|
32
|
+
Requires-Dist: numpy<2.2.0,>=1.26.0
|
|
33
|
+
Provides-Extra: hologram
|
|
34
|
+
Requires-Dist: moderngl>=5.10.0; extra == "hologram"
|
|
35
|
+
Requires-Dist: PySide6>=6.6.0; extra == "hologram"
|
|
36
|
+
Provides-Extra: dev
|
|
37
|
+
Requires-Dist: pytest>=8.0.0; extra == "dev"
|
|
38
|
+
Requires-Dist: pytest-cov>=4.1.0; extra == "dev"
|
|
39
|
+
Requires-Dist: ruff>=0.4.0; extra == "dev"
|
|
40
|
+
Requires-Dist: mypy>=1.10.0; extra == "dev"
|
|
41
|
+
Requires-Dist: pre-commit>=3.7.0; extra == "dev"
|
|
42
|
+
Dynamic: license-file
|
|
43
|
+
|
|
44
|
+
<div align="center">
|
|
45
|
+
|
|
46
|
+
# AI Virtual Mouse Controller
|
|
47
|
+
|
|
48
|
+
### *Controle seu computador com gestos da mão.*
|
|
49
|
+
|
|
50
|
+
[](https://github.com/ognistie/ai-virtual-mouse-controller/actions/workflows/ci.yml)
|
|
51
|
+

|
|
52
|
+

|
|
53
|
+

|
|
54
|
+
|
|
55
|
+
Webcam → 21 landmarks → cursor do sistema. Sem hardware extra. Sem GPU.
|
|
56
|
+
|
|
57
|
+
<br/>
|
|
58
|
+
|
|
59
|
+
<table>
|
|
60
|
+
<tr>
|
|
61
|
+
<td align="center" width="20%"><img src="docs/assets/img/gesture_move_real.png" width="100%"/><br/><sub><b>🖐️ move</b></sub></td>
|
|
62
|
+
<td align="center" width="20%"><img src="docs/assets/img/gesture_left_click_real.png" width="100%"/><br/><sub><b>🤏 click</b></sub></td>
|
|
63
|
+
<td align="center" width="20%"><img src="docs/assets/img/gesture_right_click_real.png" width="100%"/><br/><sub><b>🤞 right click</b></sub></td>
|
|
64
|
+
<td align="center" width="20%"><img src="docs/assets/img/gesture_double_click_real.png" width="100%"/><br/><sub><b>✌️ double click</b></sub></td>
|
|
65
|
+
<td align="center" width="20%"><img src="docs/assets/img/gesture_pause_real.png" width="100%"/><br/><sub><b>✊ pausa</b></sub></td>
|
|
66
|
+
</tr>
|
|
67
|
+
</table>
|
|
68
|
+
|
|
69
|
+
<br/>
|
|
70
|
+
|
|
71
|
+
[**Site oficial →**](https://ognistie.github.io/ai-virtual-mouse-controller/) · [**Guia de uso →**](https://ognistie.github.io/ai-virtual-mouse-controller/usage.html)
|
|
72
|
+
|
|
73
|
+
</div>
|
|
74
|
+
|
|
75
|
+
---
|
|
76
|
+
|
|
77
|
+
## Comece
|
|
78
|
+
|
|
79
|
+
Requer **Python 3.11 ou 3.12** + webcam.
|
|
80
|
+
|
|
81
|
+
```bash
|
|
82
|
+
pip install ai-virtual-mouse-controller
|
|
83
|
+
avmc
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
Ou via clone:
|
|
87
|
+
|
|
88
|
+
```powershell
|
|
89
|
+
git clone https://github.com/ognistie/ai-virtual-mouse-controller.git
|
|
90
|
+
cd ai-virtual-mouse-controller && py -3.11 -m venv .venv && .\.venv\Scripts\Activate.ps1
|
|
91
|
+
pip install -r requirements.txt && python main.py
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
Posicione a mão a ~50cm da câmera. **`H`** liga o holograma · **`S`** abre o painel · **`ESC`** sai.
|
|
95
|
+
|
|
96
|
+
<details>
|
|
97
|
+
<summary><b>Pré-requisitos por OS</b></summary>
|
|
98
|
+
|
|
99
|
+
| OS | Setup adicional |
|
|
100
|
+
|---|---|
|
|
101
|
+
| **🪟 Windows 10/11** | Nada. Funciona out-of-the-box após `pip install`. |
|
|
102
|
+
| **🍎 macOS** | Após primeiro run, libere acesso em **System Settings → Privacy & Security → Accessibility** (cursor) e **Camera** (webcam). Em Apple Silicon: se PyAutoGUI reclamar, `pip install pyobjc-core pyobjc`. |
|
|
103
|
+
| **🐧 Linux (X11)** | `sudo apt install scrot python3-tk python3-dev` (Ubuntu/Debian). PyAutoGUI precisa desses pra capturar tela. |
|
|
104
|
+
| **🐧 Linux (Wayland)** | PyAutoGUI tem suporte limitado. Recomendado mudar pra sessão X11 ou rodar em modo headless de teste. |
|
|
105
|
+
|
|
106
|
+
Holograma 3D (opcional, ~500MB extra): `pip install "ai-virtual-mouse-controller[hologram]"`
|
|
107
|
+
|
|
108
|
+
</details>
|
|
109
|
+
|
|
110
|
+
---
|
|
111
|
+
|
|
112
|
+
## O que é
|
|
113
|
+
|
|
114
|
+
Sistema gestual de controle de cursor com qualidade comparável a periféricos físicos. MediaPipe identifica 21 pontos da sua mão em tempo real, uma state machine traduz gestos em comandos do SO, e um holograma 3D opcional renderiza tudo sobre o desktop.
|
|
115
|
+
|
|
116
|
+
Stack: **Python 3.11+** · **OpenCV** · **MediaPipe** · **PyAutoGUI** · **NumPy** · **ModernGL** (opcional)
|
|
117
|
+
|
|
118
|
+
---
|
|
119
|
+
|
|
120
|
+
<div align="center">
|
|
121
|
+
|
|
122
|
+
Quer entender a fundo? **[Documentação técnica →](https://ognistie.github.io/ai-virtual-mouse-controller/)**
|
|
123
|
+
|
|
124
|
+
Quer contribuir? Leia [CONTRIBUTING.md](CONTRIBUTING.md) · Achou bug? [Abra issue](https://github.com/ognistie/ai-virtual-mouse-controller/issues/new?template=bug_report.yml)
|
|
125
|
+
|
|
126
|
+
<br/>
|
|
127
|
+
|
|
128
|
+
MIT © [Guilherme Moraes Franco](https://github.com/ognistie)
|
|
129
|
+
|
|
130
|
+
</div>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
config.py,sha256=gvLoSc041b8Waf30fd-dHpSP2hXqOVnDOti7-6g4-oA,20158
|
|
2
|
+
main.py,sha256=ltm4IPqL7ZHLOm5lUH3PsHyWO7DmMh5k_VSopdW57Lc,870
|
|
3
|
+
ai_virtual_mouse_controller-1.0.1.dist-info/licenses/LICENSE,sha256=IhPSj9mmGIeKhqv2UEtLAZpD9wLqWj8hu-MLPUkUDVk,1080
|
|
4
|
+
core/__init__.py,sha256=WRno_qdufyAhyaRRFuEUSnLInLnxyFXmVvyxlS0DtDE,495
|
|
5
|
+
core/camera.py,sha256=swhGkNzpmisPVjket-B2214D-OGw65oyuMA5_EZjQac,5993
|
|
6
|
+
core/click_burst.py,sha256=Aotd6piXXjjbYQfkpl0_yhaF6MLCqZ8s2gG8ZjNXHAk,6188
|
|
7
|
+
core/cursor_controller.py,sha256=PSfP8SQEvGLVUOlAIv61fdYkzrlz1J8qop2cxB5FZ48,12100
|
|
8
|
+
core/finger_posture.py,sha256=AJ_3djtCk6W7HkBfpfFHAuh_bmXRYxmo6bUsTNRn8ME,4757
|
|
9
|
+
core/gesture_detector.py,sha256=35N_7qqNLTP7MXk3-6kTbXb7v5hpiocw429haqogtj4,41412
|
|
10
|
+
core/hand_anchor.py,sha256=rsnwqfZes2j30kFSnxY6IR-To0cgcZENq-oTOVhqK8U,13693
|
|
11
|
+
core/hand_mesh.py,sha256=IpCb3MMJrN-t29qnKJiMHhyxDSiO_vsP2dm0l-mixMM,31621
|
|
12
|
+
core/hand_renderer.py,sha256=Ql4LkZ6C9lDkbKurMxohMWojt-hoKcIO75zgvVoydAM,14104
|
|
13
|
+
core/hand_tracker.py,sha256=5vZC-WVBLWueqp1fmyyK7N2WipGK9jifyvmRSc2RN44,7785
|
|
14
|
+
core/hologram_gl_backend.py,sha256=RZJcz2TAVdydnvK_kvD9UyTS9td9aOJQaqPdy6X45dk,38245
|
|
15
|
+
core/hologram_overlay.py,sha256=vh-zPYOXjDhxk3aU_THxM46CsXYd3caEDtJHOWYIvb0,35482
|
|
16
|
+
core/perf_telemetry.py,sha256=uiNePOGIUlity2cu9-9pDG9nYFCEaOPgZNlvfhi-LT4,4501
|
|
17
|
+
core/runtime_settings.py,sha256=vrLN0YRVvUzB46jjr03l0ymYPgj0satqTOmX_SFNRuE,10201
|
|
18
|
+
core/smoothing.py,sha256=L6haqe22GTE_rT_0OYAVsKISXcBMPUVct8jE4DqBd2w,6904
|
|
19
|
+
core/ui_overlay.py,sha256=_yP-fi1MWXZ9I9cX2OnTLYFEwvD9ejJIo_1-Ij_Hbeo,26515
|
|
20
|
+
core/utils.py,sha256=nhHQ9EEvOaoqZIFNWM9S5AEAKjNbrSfLW6r7Qz9lwcg,2981
|
|
21
|
+
services/__init__.py,sha256=sUrXql5dOIwixikpUrzP7K6-8abt_bZYQKz4e_5xaF0,61
|
|
22
|
+
services/virtual_mouse_service.py,sha256=1y8buSlc3eZkwpQwQfaPGHFNJEuPmvqEDYvV_C_KVvw,34670
|
|
23
|
+
ai_virtual_mouse_controller-1.0.1.dist-info/METADATA,sha256=zdH1jbACdJAEUEjAm7gAW88nMbtT11GpI7q-O6AEY-c,5593
|
|
24
|
+
ai_virtual_mouse_controller-1.0.1.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
|
|
25
|
+
ai_virtual_mouse_controller-1.0.1.dist-info/entry_points.txt,sha256=BlTyRy0NZcJPuPj24plwhuxbOfSHZgx4V99nVVJlgxg,35
|
|
26
|
+
ai_virtual_mouse_controller-1.0.1.dist-info/top_level.txt,sha256=hHvvSk8Zy7WIY2Qp7-Gk3FOICSwQjZLZ3lY-RX4wnMo,26
|
|
27
|
+
ai_virtual_mouse_controller-1.0.1.dist-info/RECORD,,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Guilherme Moraes Franco
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|