Control your computer using your hands.
Project description
Controllable
A program to control your computer through its camera.
Requirements
- Python 3.9 - 3.12
- A camera connected to your computer
Installation
-
Clone the repository:
git clone https://github.com/simon0302010/Controllable.git cd Controllable
-
Install the dependencies:
It is recommended to use a virtual environment.
python -m venv .venv source .venv/bin/activate # On Windows, use `.venv\Scripts\activate`
Install the required packages using
pip:pip install -e . # or pip install controllable-py pip uninstall -y opencv-contrib-python opencv-python-headless pip cache purge pip install opencv-python-headless
opencv-contrib-pythonis being uninstalled to prevent issues withPyQt5.
Usage
-
Run the application:
python -m controllable
You can also just run
controllable -
Calibrate:
A window will open showing your camera feed. Place your hand in a comfortable position in front of the camera and press the "Calibrate" button.
-
Start controlling:
After calibration, press the "Start" button. You can now control your mouse by moving your hand. To prevent accidental inputs, keep your hand the same distance from the camera during usage.
- Mouse movement: The position of your index finger controls the cursor.
- Clicking: Tap your index finger and thumb together to perform a click.
- Dragging: Hold your index finger and thumb together to drag (has to be enabled in settings)
-
Stop:
Press the "Stop" button to stop controlling the mouse.
Known Issues
- Mouse control and clicking doesn't work under Wayland
License
This project is licensed under the GNU General Public License v3.0. For more details, see the LICENSE file.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file controllable_py-0.1.2.tar.gz.
File metadata
- Download URL: controllable_py-0.1.2.tar.gz
- Upload date:
- Size: 21.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c3cb57aa8086c93a452ef342f90cca961c49355d53dcd81c9c4776f3162f7edb
|
|
| MD5 |
0b2922f8a88f3f1059b54aba5c08e3f3
|
|
| BLAKE2b-256 |
6c740645687c763fc47b907541eb3e40931fc0b96d96c43f54828dd1a14da3b5
|
File details
Details for the file controllable_py-0.1.2-py3-none-any.whl.
File metadata
- Download URL: controllable_py-0.1.2-py3-none-any.whl
- Upload date:
- Size: 21.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3f415e01f1b4bfdbf280c7a5cd1a3c2c0f0305b14c0cc6a3a77b6d2129032168
|
|
| MD5 |
0c86fffbd2722e078980dc1de10658cf
|
|
| BLAKE2b-256 |
4d67612518f948e4fa89690ecc6fc3184da60da415ccca2a9f8e458ee7329c0f
|