Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 1021 Bytes

Readme.md

File metadata and controls

28 lines (22 loc) · 1021 Bytes

Drag and Drop

In this project I am going to learn how to create a virtual drag and drop system using opencv and python

How to install

  1. Clone this repository on your computer https://github.com/paveldat/drag_and_drop.git
  2. Install all the requirements run libraries.bat or pip install -r requirements.txt
  3. Run the program python main.py

Help

You might face issue with webcam not showing and you get errors. To solve it just change the value in this line (for example to 1). cap = cv2.VideoCapture(0) Increment this number until you see your webcam.

Hand Landmarks

Click

In order to simulate a click, you need to connect the index and middle fingers on your hand. An example of a valid click is shown in the image below.

Result

Alt Text