A simple way to use Mediapipe hand features.
Project description
HandDetector-cc Module
Simple python package to simply use mediapipe hand detection.
Author Details
Name : Chanchal Roy
Email : croy7667@gmail.com
GitHub Project Details
Project : HandDetector-cc
Installation
Install HandDetector-cc with pip
pip install HandDetector-cc
Usage
import HandDec
import time
timeS = time.time()
class_obj = HandDec.HandDetector()
cam = class_obj.init_cam()
while cam.isOpened():
success, image = cam.read()
if not success: continue
detected_hand = class_obj.findHand(image, draw_detect=False)
hand_landmark = class_obj.findLocations(image, draw_id=8)
if hand_landmark[0] and hand_landmark[1]:
# print(hand_landmark[0][8])
finger_ups = class_obj.fingerUp(hand_landmark[0])
# print(finger_ups)
boundry = hand_landmark[1]
cv2.rectangle(image, (boundry[0], boundry[1]), (boundry[2], boundry[3]), (0, 255, 255), 2)
timeE = time.time()
fps = int(1 / (timeE - timeS))
timeS = timeE
cv2.putText(image, str(f'FPS : {fps}'), (10, 30), 4, 1, (0, 255, 255), 3)
cv2.imshow('Hand Detection - Chanchal Roy', image)
if cv2.waitKey(1) & 0xff == ord('q'): break
cam.release()
cv2.destroyAllWindows()
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file HandDetector_cc-0.0.4-py3-none-any.whl.
File metadata
- Download URL: HandDetector_cc-0.0.4-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
012b34696978ac229a51cf0876bfee570c70ef4c2d20bb1c314bf5c7c499eba9
|
|
| MD5 |
d5f86749fb3016c75097a745d8f43e59
|
|
| BLAKE2b-256 |
bd3f74bde66868cff314eab3ab86f0404ae4e95e57f2f0b03f3ca4373f50291d
|