This Python application demonstrates drag and drop functionality using OpenCV and Datapipe. By leveraging computer vision techniques, users can interact with objects on the screen by performing simple hand gestures.
- Drag and Drop Interaction: Use the ππ» gesture to drag objects within the application window.
- Real-time Feedback: The application provides real-time visual feedback, allowing users to see their hand gestures reflected on the screen.
Before running the application, ensure you have the following installed:
- Python π (For logic)
- OpenCV ποΈ (For computer vision and image processing)
- Datapipe ππ» (for gesture recognition)
-
Clone this repository to your local machine:
git clone https://github.com/viniciusfinger/opencv-drag-and-drop.git
-
Install the required dependencies:
pip install -r requirements.txt
-
Run the application:
python main.py
-
Place your hand within the camera's field of view.
-
Do the ππ» gesture to drag objects.
-
Release your hand to drop the object.
Feel free to customize the application to suit your needs. You can modify the gesture recognition logic, add new gestures, add new elements or integrate additional functionality.