DEV Community

Cover image for Building a Touchless AI Mouse Control in 2 hours with Python 🖱️✨
Yan
Yan

Posted on

Building a Touchless AI Mouse Control in 2 hours with Python 🖱️✨

Moving the cursor with a wave of a hand! 🦾

Hi everyone! I’m excited to share my latest mini-project: NUMBA_3 (BIO-SYSTEM PRO).

It’s a standalone tool that uses a webcam to track your hand gestures and control the system cursor. No special hardware, just some Python magic.

🛠 The Tech Stack

I wanted to see how fast I could build a smooth-running tool. Here’s what’s under the hood:

  • MediaPipe: To get the 21-point hand skeleton in real-time.
  • OpenCV: For the camera feed processing.
  • Numba: The secret sauce. I used JIT-compilation to optimize heavy calculations, making the cursor movement feel incredibly fluid.
  • PyInstaller: To bundle it into a single portable EXE.

💡 Why I built it

We've all been there: eating snacks while watching a movie or coding, and you don't want to touch your mouse with greasy fingers. Now I can just wave my hand to scroll or click.

📦 Try it out

The project is fully open-source. You can grab the EXE or check the code here:

[👉 NUMBA_3 on GitHub]https://github.com/yan4ikxxx-wq/NUMBA_3/releases/latest

How to run: 1. Download NUMBA_3.exe from the Releases.

  1. Run it (and allow it in your antivirus if it flags the unsigned EXE).
  2. Enjoy the magic!

I'd love to get some feedback on the gesture smoothing. If you have any ideas for the next version, let me know in the comments!

Top comments (1)

Some comments may only be visible to logged-in visitors. Sign in to view all comments.