An open API service indexing awesome lists of open source software.

https://github.com/paveldat/drag_and_drop

Virtual Drag and Drop using OpenCV Python
https://github.com/paveldat/drag_and_drop

Last synced: about 2 months ago
JSON representation

Virtual Drag and Drop using OpenCV Python

Awesome Lists containing this project

README

          

# 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](https://github.com/paveldat/drag_and_drop/blob/main/img/result.gif)