šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
DemoInstallSign in
Socket

metaidigitcv

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

metaidigitcv

computer vision and machine learning library

0.1.9
PyPI
Maintainers
1

metaidigitcv

šŸš€ Hand Tracking & Gesture Recognition with metaidigitcv

metaidigitcv is an advanced computer vision and machine learning library designed to detect, track, and analyze hand keypoints using MediaPipe and OpenCV. Whether you're building interactive applications, gesture-based controls, or AI-powered hand recognition systems, metaidigitcv simplifies the process with efficient hand tracking and keypoint extraction.

šŸ”„ Features

āœ… Hand Detection – Accurately detects multiple hands in real-time.
āœ… Landmark Tracking – Tracks 21 keypoints per hand.
āœ… Finger Recognition – Identifies raised fingers for gesture recognition.
āœ… Distance Measurement – Computes distance between two keypoints.
āœ… Optimized Performance – Uses MediaPipe for fast processing.

šŸ“¦ Installation

pip install metaidigitcv

Ensure you have OpenCV and MediaPipe installed:

pip install opencv-python mediapipe numpy

šŸŽÆ Quick Start

import cv2
from metaidigitcv.main import Handtracker

# Initialize the tracker
detector = Handtracker()

# Capture video
cap = cv2.VideoCapture(0)

while True:
    success, img = cap.read()
    if not success:
        break
    
    hands, img = detector.identifyHands(img)
    if hands:
        lmList = hands[0]["lmList"]  # List of hand landmarks
        print("Thumb Tip Position:", lmList[4])
    
    cv2.imshow("Hand Tracking", img)
    if cv2.waitKey(1) & 0xFF == ord('q'):
        break

cap.release()
cv2.destroyAllWindows()

✨ Key Functions

šŸ– Hand Detection

hands, img = detector.identifyHands(img, draw=True)
  • Detects hands in an image/video frame.
  • Draws hand landmarks if draw=True.

šŸ·ļø Landmark Extraction

lmList, bbox = detector.trackPosition(img)
  • Returns a list of hand landmark positions.
  • Provides the bounding box of the detected hand.

āœ‹ Finger State Detection

fingers = detector.trackRaisedFingers(hands[0])
  • Returns a list [1, 0, 1, 1, 0] where 1 means the finger is up.

šŸ“ Distance Calculation

length, img, points = detector.trackDistance(4, 8, img)
  • Measures the Euclidean distance between two keypoints (e.g., thumb and index finger).

šŸŽÆ Applications

šŸ”¹ Gesture-based UI controls šŸŽ®
šŸ”¹ Sign language recognition 🤟
šŸ”¹ Virtual painting & drawing šŸŽØ
šŸ”¹ Touchless interaction systems šŸ¤–
šŸ”¹ AI-powered hand gesture games šŸŽ­

šŸ“œ License

This project is licensed under the MIT License – see the LICENSE file for details.

šŸ¤ Contributing

We welcome contributions! Feel free to fork the repository and submit a pull request.

šŸ“§ Contact

šŸ‘¤ Author: Suhal Samad
āœ‰ļø Email: samadsuhal@gmail.com

If you like metaidigitcvcv, don't forget to ⭐ the repository!

šŸš€ Let's build amazing hand-tracking applications together! šŸš€

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts