Skip to main content

A high-performance webcam-based Air Mouse using Python, MediaPipe, and OpenCV.

Project description

Lumina Air Mouse

A high-performance "Air Mouse" using Python, MediaPipe, and OpenCV. Control your computer cursor and perform gestures using just your webcam.

Features

  • Precise Cursor Control: Smooth index finger tracking.
  • Dwell Clicking: Hover over an area to trigger a left click.
  • Drag Gestures: Pinch (Index + Thumb) for left drag, Fist for right drag.
  • Scroll Support: Two-finger vertical movement for scrolling.
  • Visual Feedback: Real-time HUD showing tracking status and gesture progress.

Installation

Using pip

pip install airmouse

From Source (Development)

  1. Clone the repository:
    git clone https://github.com/Kisses99/airmouse.git
    cd airmouse
    
  2. Install dependencies using uv:
    uv sync
    

Usage

Run the air mouse via the command line:

airmouse

Or if running from source:

uv run airmouse

Gestures

  • Move Cursor: Point with your index finger.
  • Left Click: Hold the cursor still on a point for 0.8s.
  • Left Drag: Pinch your index finger and thumb together and move.
  • Right Drag: Make a fist and move.
  • Scroll: Hold your index and middle fingers up together and move up/down.

Requirements

  • Python 3.10 or higher
  • A webcam
  • Windows OS (Currently optimized for Windows via DirectShow)

License

MIT

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

airmouse-0.1.0.tar.gz (115.6 kB view details)

Uploaded Source

Built Distribution

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

airmouse-0.1.0-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file airmouse-0.1.0.tar.gz.

File metadata

  • Download URL: airmouse-0.1.0.tar.gz
  • Upload date:
  • Size: 115.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for airmouse-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2ee96f14b4c41c578dfcabcbed553625d7a05c4a4801b7679c5298abc461b5b1
MD5 90fdd34be5f95533b9144036c6da1d81
BLAKE2b-256 3f1434c3ff97973f81b54cec52c5f97645dfc4d95c9dd3385f185ca62cbed39b

See more details on using hashes here.

File details

Details for the file airmouse-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: airmouse-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for airmouse-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 02a096bc9c97e1f1996606fc77bf463478bb12e3b00628e0bff61d13a4ba1768
MD5 a648df14649a364aac21be034af5113f
BLAKE2b-256 37ddb90d0e1411695434a36a7d06d53f660843f76b6fe119cc1004297ac4bd3b

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