Skip to content

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.

License

Notifications You must be signed in to change notification settings

problemsolvewithridoy/Hand-detection-using-python-and-cvzone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Hand Detection using Python

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:-

Installation

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

Deployment

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

Output

Screenshot (55)

You can follow me

Facebook:- https://www.facebook.com/problemsolvewithridoy/

Linkedin:- https://www.linkedin.com/in/ridoyhossain/

YouTube:- https://www.youtube.com/@problemsolvewithridoy

Gmail:- entridoy2@gmail.com

If you have any confusion, please feel free to contact with me. Thank you

License

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.

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages