Contents

Virtual Drag and Drop using hand

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

/posts/virtual_drag_and_drop/draganddropvideo.gif
Let's see how it performs

Sorry for my poor webcam quality
😥😥😥