Skip to content

PrasunDutta007/Volume-Controller

Repository files navigation

Volume Controller (OpenCV)

Software

PyCharm

Packages

1) Mediapipe
2) OpenCV
3) Pyclaw
4) Numpy

Features

  • Hand Tracker & Detector
  • Laptop/PC Volume Controller using Finger Distance
  • Colour Change on Set Volume
  • Improved Callibration

To Run The Project

  Import the Volume-Controller Folder into Pycharm.
  Install all the Required Packages via the Python Interpreter Settings in PyCharm
  Open HandTrackingModule.py and check if camera is opening via OpenCv
  If not then try editing the code this way:
    index = 0
    arr = []
    while True:
        cap = cv2.VideoCapture(index)
        if not cap.read()[0]:
            break
        else:
            arr.append(index)
        cap.release()
        index += 1
    return arr

    This will list out all the Webcam indexes.
  If HandTrackingModule.py works fine. Move on to VolumeControl.py
  Run the VolumeControl.py and check if you are able to change the volume using Thumb and Index Finger
  If not try changing the "area" parameters given in the code to suite your Webcam needs

  And You Are Done!!

Demo

Screenshot

About

Control your Laptop volume via Gestures using OpenCV

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages