- Hand Tracker & Detector
- Laptop/PC Volume Controller using Finger Distance
- Colour Change on Set Volume
- Improved Callibration
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!!