Skip to main content

computer vision and machine learning library

Project description

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 HandKeypointTracker

# Initialize the tracker
detector = HandKeypointTracker()

# Capture video
cap = cv2.VideoCapture(0)

while True:
    success, img = cap.read()
    if not success:
        break
    
    hands, img = detector.detectHands(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.detectHands(img, draw=True)
  • Detects hands in an image/video frame.
  • Draws hand landmarks if draw=True.

🏷️ Landmark Extraction

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

✋ Finger State Detection

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

📏 Distance Calculation

length, img, points = detector.findDistance(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 metaidigitcv-cv, don't forget to ⭐ the repository!


🚀 Let's build amazing hand-tracking applications together! 🚀

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

metaidigitcv-0.1.2.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

metaidigitcv-0.1.2-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file metaidigitcv-0.1.2.tar.gz.

File metadata

  • Download URL: metaidigitcv-0.1.2.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.0

File hashes

Hashes for metaidigitcv-0.1.2.tar.gz
Algorithm Hash digest
SHA256 bc342cb135b99163e8954bdf5be66ddea72b5e26ee606d2adac5a5a10c536c3c
MD5 500eaa3a67f5b13152c317fad6cd91a1
BLAKE2b-256 c6956afa2266772a8a3b9c8412d929e0b7c6cc5df73fc44140970054d4c70520

See more details on using hashes here.

File details

Details for the file metaidigitcv-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: metaidigitcv-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.0

File hashes

Hashes for metaidigitcv-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 91cac67031957733b6de07130da80df510f62944f8aad8e10f43eae531160e8b
MD5 9adfeb77e33d148257e2371541ea6f5a
BLAKE2b-256 23fd0bfcbf6b5652c6d9711d3e00783f86c5f49c2a755a29d347b4999f92e159

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page