https://github.com/alrifat2/opencvhandtracking
Library for OPENCV users. Easily implement hand tracking to your project without any manual work.
https://github.com/alrifat2/opencvhandtracking
opencv python
Last synced: about 2 months ago
JSON representation
Library for OPENCV users. Easily implement hand tracking to your project without any manual work.
- Host: GitHub
- URL: https://github.com/alrifat2/opencvhandtracking
- Owner: alrifat2
- License: mit
- Created: 2021-06-06T14:02:56.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-06-06T19:17:20.000Z (about 5 years ago)
- Last Synced: 2025-10-26T03:59:42.268Z (8 months ago)
- Topics: opencv, python
- Language: Python
- Homepage:
- Size: 14.6 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
opencvhandtracking
=======
  [](#contributors-)   
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:
```sh
pip install opencvtracking
```
Usage
-----
Import the library:
```python
import cv2
from opencvtracking import HandGesture
```
To implement the library:
```python
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
----------
- Issue Tracker: https://github.com/AlDevStuff/opencvhandtracking/issues
- Source Code: https://github.com/AlDevStuff/opencvhandtracking
Pull requests welcome!
Support
-------
If you are having issues, please let me know.
License
-------
The project is licensed under the MIT license.