Virtual Drag and Drop using hand
Contents
VirtualDragAndDrop
I was kind of bored a week end so I wanted to do something that will be absolutely never used again 🙃.
This little project allowed me to get in touch with OpenCV and image processing.
The program I built creates a virtual drag and drop on objects represented by their centers. I used rectangle for this example.
To use the program, just run the file main.py. Then to move an object, you have to “grab it” = close your hand when your hand is on the object. Then opening your hand will release the object.
I used Python with OpenCV and cvzone to detect the hand. A next step would be to recreate the hand detection by myself.
Checkout my code here
Sorry for my poor webcam quality
😥😥😥