https://github.com/hasibzunair/awesome-mouse
Control a mouse cursor using your fingers. Drag and drop files from one point to another
https://github.com/hasibzunair/awesome-mouse
List: awesome-mouse
color-segmentation image-processing opencv-python video-processing
Last synced: 9 days ago
JSON representation
Control a mouse cursor using your fingers. Drag and drop files from one point to another
- Host: GitHub
- URL: https://github.com/hasibzunair/awesome-mouse
- Owner: hasibzunair
- Created: 2018-04-29T11:55:50.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-13T10:28:58.000Z (almost 8 years ago)
- Last Synced: 2025-10-31T10:02:47.759Z (8 months ago)
- Topics: color-segmentation, image-processing, opencv-python, video-processing
- Language: Python
- Homepage:
- Size: 147 KB
- Stars: 2
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# virtual-mouse-opencv
I have filtered the green colour using appropriate BGR values. Then by using morphological transformation noise is removed. Lastly, these colour values are tracked and mapped accordingly to the mouse pointer using the pynput and tkinter libraries with also implementation of basic mathematics. This also gives access to click and drag gesture(geometry concepts) like in the mouse.
# Core libraries used :
* cv
* numpy
* pynput
* tkinter
I have made a virtual environment in Pycharm and instaled the above packages/dependencies.
# Video Link :
https://www.youtube.com/watch?v=I4YNPaKfoVo
# Results :
The output was pretty good in terms of latency and also had less noise. You need to change the thresholds so that it works for your surroundings.
