A futuristic file sharing system using hand gestures, inspired by Huawei's feature.
- Dynamic sender/receiver roles based on gestures
- Open Palm ✋: Start sharing mode
- Closed Fist ✊: Grab file
- Open Palm again ✋: Release and send file
- Automatic file transfer over Wi-Fi LAN
- Auto-open received files
- Python 3.8 - 3.11 (Mediapipe compatibility)
- Webcam
- Two computers on same Wi-Fi network
-
Clone or download the project
-
Create and activate a virtual environment (recommended)
-
Install dependencies:
pip install -r requirements.txtNote: If mediapipe fails, use Python 3.8-3.11
-
Run on both systems:
python main.py
- Run
main.pyon both systems - On sender: Enter the path of the file to share when prompted (or press enter for demo.jpg)
- On sender: Perform Open Palm ✋ → Fist ✊ gestures (broadcasts intent)
- Move hand to receiver system
- On receiver: Perform Open Palm ✋ (triggers file transfer)
- File is received in
Downloads/received_<filename>and auto-opened
- Gesture recognition using MediaPipe and OpenCV
- UDP broadcasting for intent signaling
- TCP for file transfer
- Control messages via UDP for release signal
main.py: Main application loopgesture_recognition.py: Hand gesture detectionnetwork.py: Networking and file transferconfig.py: Configuration settings