Skip to content

aspirin01/pinch-zoom-opencv-ML

Repository files navigation

Pinch-zoom

This is a python project based on real-time hand-gesture detection, to zoom in or out, using the distance between the index finger and the thumb. It's based on OpenCV, Mediapipe and pyautogui. MediaPipe offers open source cross-platform, customizable ML solutions for live and streaming media, created by Google. Pyautogui is used to communicate with the keyboard and mouse and control them by python.

To start using this, clone this repository and run

pip install -r requirement.txt

Then, run pinchZoom.py to start camera and use your index and thumb fingers to pinch zoom on an area.

Press any key to exit.

About

This is a project to detect gestures to zoom in or out, using the real-time distance between the index finger and the thumb. It's based on OpenCV and Mediapipe.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages