Skip to main content

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

  1. Clone the repository:

    git clone https://github.com/simon0302010/Controllable.git
    cd Controllable
    
  2. 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-python is being uninstalled to prevent issues with PyQt5.

Usage

  1. Run the application:

    python -m controllable
    

    You can also just run controllable

  2. 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.

  3. 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)
  4. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

controllable_py-0.1.2.tar.gz (21.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

controllable_py-0.1.2-py3-none-any.whl (21.8 kB view details)

Uploaded Python 3

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

Hashes for controllable_py-0.1.2.tar.gz
Algorithm Hash digest
SHA256 c3cb57aa8086c93a452ef342f90cca961c49355d53dcd81c9c4776f3162f7edb
MD5 0b2922f8a88f3f1059b54aba5c08e3f3
BLAKE2b-256 6c740645687c763fc47b907541eb3e40931fc0b96d96c43f54828dd1a14da3b5

See more details on using hashes here.

File details

Details for the file controllable_py-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for controllable_py-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3f415e01f1b4bfdbf280c7a5cd1a3c2c0f0305b14c0cc6a3a77b6d2129032168
MD5 0c86fffbd2722e078980dc1de10658cf
BLAKE2b-256 4d67612518f948e4fa89690ecc6fc3184da60da415ccca2a9f8e458ee7329c0f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page