This project is a hand detection program written in Python. It uses computer vision techniques to identify and track the location of hands in real-time using a webcam.The program will open your default webcam and display the output on the screen. It will track the location of your hand in real-time and draw a bounding box around it.
To quit the program, press the 'q' key.
let's start...............
To make this project you need to follow this step:-
Install package with pip (for this project you need to install mentioned version module)
pip install cvzone==1.4.1
pip install mediapipe==0.8.3.1
To deploy this project run
#please subscribe "Problem Solve With Ridoy" youtube channel
import cv2
from cvzone.HandTrackingModule import HandDetector
cap = cv2.VideoCapture(0)
cap.set(3, 1280)
cap.set(4, 720)
detector = HandDetector(detectionCon=0.6, maxHands= 2)
while True:
_, img = cap.read()
hands, img = detector.findHands(img)
cv2.imshow("Smart Camera",img)
if cv2.waitKey(1) == ord("q"):
break
Facebook:- https://www.facebook.com/problemsolvewithridoy/
Linkedin:- https://www.linkedin.com/in/ridoyhossain/
YouTube:- https://www.youtube.com/@problemsolvewithridoy
Gmail:- entridoy2@gmail.com
This script is released under the MIT License. Feel free to use, modify, and distribute it as you wish. If you find any bugs or have any suggestions for improvement, please submit an issue or a pull request on this repository.