opencv-handtracking

OpenCV Hand Tracking Modules. Skip right to the real deal without dealing with hand tracking.


Keywords
opencv, computer, vision, handtracking, cv2, mediapipe
License
MIT
Install
pip install opencv-handtracking==0.1

Documentation

opencvhandtracking

version python version Contributors license build

Library for OPENCV users. Easily implement hand tracking to your project without any manual work.

Features

  • Open camera instantly with sample code
  • Track hands

Installation

On your project directory, make sure to have virtual environment activated. This library will download both opencv and mediapipe. Run:

pip install opencvtracking

Usage

Import the library:

import cv2
from opencvtracking import HandGesture

To implement the library:

cap = cv2.VideoCapture()
handtrckingdetector = opencvhandtracking.HandGesture()

# This example is for the camera, but you can do this on anything from video to pictures.

while True:
    success, img = cap.read()
    img = handtrckingdetector.drawHand(img)
    landmarkList = handtrckingdetector.handPosition(img)
    
    # fps on the window [optional]
    cv2.imshow("Image", img)
    cv2.waitKey(1)

Contribute

Pull requests welcome!

Support

If you are having issues, please let me know.

License

The project is licensed under the MIT license.