Skip to content

Drag and drop an square via webcam using Python, OpenCV and Mediapipe πŸ‘ŒπŸ»πŸ“·

Notifications You must be signed in to change notification settings

viniciusfinger/opencv-drag-and-drop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

OpenCV Drag and Drop β– πŸ‘ŒπŸ»πŸ

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.

Features

  • 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.

Prerequisites

Before running the application, ensure you have the following installed:

  • Python 🐍 (For logic)
  • OpenCV πŸ‘οΈ (For computer vision and image processing)
  • Datapipe πŸ‘ŒπŸ» (for gesture recognition)

Installation

  1. Clone this repository to your local machine:

    git clone https://github.com/viniciusfinger/opencv-drag-and-drop.git
  2. Install the required dependencies:

    pip install -r requirements.txt

Usage

  1. Run the application:

    python main.py
  2. Place your hand within the camera's field of view.

  3. Do the πŸ‘ŒπŸ» gesture to drag objects.

  4. Release your hand to drop the object.

Customization

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.

About

Drag and drop an square via webcam using Python, OpenCV and Mediapipe πŸ‘ŒπŸ»πŸ“·

Topics

Resources

Stars

Watchers

Forks

Languages