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
- Host: GitHub
- URL: https://github.com/paveldat/drag_and_drop
- Owner: paveldat
- Created: 2022-04-14T18:50:49.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-04-23T14:56:49.000Z (over 3 years ago)
- Last Synced: 2023-05-12T15:15:26.406Z (over 2 years ago)
- Language: Python
- Size: 25.9 MB
- Stars: 25
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
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
