-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
30 lines (23 loc) · 1.17 KB
/
README
File metadata and controls
30 lines (23 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FistMouse
=========
FistMouse lets you control your mouse pointer using your fist, detected via your webcam and OpenCV. If you bring your fist close to the camera, it triggers a mouse click.
## Features
- Move the mouse pointer by moving your fist in front of the camera
- Click by bringing your fist close to the camera
## Setup
1. Install dependencies:
- `pip install opencv-python mouse`
2. Download or train a Haar cascade for fist detection (e.g., `fist.xml`)
3. Set the correct path to your Haar cascade in the script
4. Adjust the focal length and screen size in the script for your setup
5. Run the script: `python fistmouse.py`
## Usage
- Move your fist in front of the webcam to move the mouse pointer
- Bring your fist close to the camera to click
- Press ESC to exit
## Improvements & Notes
- The detection and control are basic and may need calibration for your environment
- For best results, use in good lighting and with a clear background
- Security: No sensitive data is stored, but always be careful with webcam access
## Author's Note
This is a fun computer vision experiment. The code is a bit clumsy and can be improved with better detection, smoothing, and calibration.