Skip to content

Commit

Permalink
hand detection added
Browse files Browse the repository at this point in the history
  • Loading branch information
alvonx committed May 8, 2021
1 parent e193309 commit 4501d09
Show file tree
Hide file tree
Showing 8 changed files with 121 additions and 3 deletions.
100 changes: 100 additions & 0 deletions alvonCV.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
Metadata-Version: 2.1
Name: alvonCV
Version: 0.2
Summary: Computer Vision Helper Package
Home-page: https://github.com/alvon-X/alvonCV
Author: Deepak Singh
Author-email: deepaksinghgs30@gmail.com
License: MIT
Download-URL: https://github.com/alvon-X/alvonCV/archive/refs/tags/v_02.tar.gz
Description: # Computer Vision Helper Packages

---

- Face Detection
- Face Mesh

## Install the package
```sh
pip install alvonCV
```

## Demo Code for Face Detection

```c
import alvonCV
import cv2
import time

cap = cv2.VideoCapture(0)
pTime = 0
# here you use the alvonCV package
faceDetectorObj = alvonCV.FaceDetector()

while True:
success, img = cap.read()
img, bboxs = faceDetectorObj.findFaces(img, draw=True)
cTime = time.time()
fps = 1 / (cTime - pTime)
pTime = cTime
cv2.putText(img, f'FPS: {int(fps)}', (20, 70), cv2.FONT_HERSHEY_PLAIN, 3, (0, 255, 0), 2)
cv2.imshow("Image", img)
cv2.waitKey(1)
```

## Demo Code for Face Mesh

```c
import alvonCV
import cv2
import time

cap = cv2.VideoCapture(0)
pTime = 0
faceDetectorObj = alvonCV.FaceMeshDetector()

while True:
success, img = cap.read()
img = faceDetectorObj.findFaceMesh(img, draw=True)
cTime = time.time()
fps = 1 / (cTime - pTime)
pTime = cTime
cv2.putText(img, f'FPS: {int(fps)}', (20, 70), cv2.FONT_HERSHEY_PLAIN, 3, (0, 255, 0), 2)
cv2.imshow("Image", img)
cv2.waitKey(1)

```

## Demo Code for Hand Detector

```c
import alvonCV
import cv2
import time

cap = cv2.VideoCapture(0)
detector = alvonCV.HandDetector(detectionCon=0.8, maxHands=1)
while True:
# Get image frame
success, img = cap.read()

# Find the hand and its landmarks
img = detector.findHands(img)
lmList, bbox = detector.findPosition(img)
fingersUp = detector.fingersUp()
print(fingersUp)

# Display
cv2.imshow("Image", img)
cv2.waitKey(1)
```
Keywords: Computer Vision,Face Mesh,Face Detection,alvon
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Build Tools
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Description-Content-Type: text/markdown
13 changes: 13 additions & 0 deletions alvonCV.egg-info/SOURCES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
LICENCE.txt
README.md
setup.cfg
setup.py
alvonCV/FaceDetectionModule.py
alvonCV/FaceMeshModule.py
alvonCV/HandTrackingModule.py
alvonCV/__init__.py
alvonCV.egg-info/PKG-INFO
alvonCV.egg-info/SOURCES.txt
alvonCV.egg-info/dependency_links.txt
alvonCV.egg-info/requires.txt
alvonCV.egg-info/top_level.txt
1 change: 1 addition & 0 deletions alvonCV.egg-info/dependency_links.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

2 changes: 2 additions & 0 deletions alvonCV.egg-info/requires.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
opencv-python
mediapipe
1 change: 1 addition & 0 deletions alvonCV.egg-info/top_level.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
alvonCV
3 changes: 2 additions & 1 deletion alvonCV/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
from alvonCV.FaceMeshModule import FaceMeshDetector
from alvonCV.FaceDetectionModule import FaceDetector
from alvonCV.FaceDetectionModule import FaceDetector
from alvonCV.HandTrackingModule import HandDetector
Binary file added dist/alvonCV-0.2.tar.gz
Binary file not shown.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
setup(
name='alvonCV', # How you named your package folder (MyLib)
packages=['alvonCV'], # Chose the same as "name"
version='0.1', # Start with a small number and increase it with every change you make
version='0.2.1', # Start with a small number and increase it with every change you make
license='MIT', # Chose a license from here: https://help.github.com/articles/licensing-a-repository
description='Computer Vision Helper Package', # Give a short description about your library
long_description=long_description,
long_description_content_type="text/markdown",
author='Deepak Singh', # Type in your name
author_email='deepaksinghgs30@gmail.com', # Type in your E-Mail
url='https://github.com/alvon-X/alvonCV', # Provide either the link to your github or to your website
download_url='https://github.com/alvon-X/alvonCV/archive/refs/tags/v_01.tar.gz', # I explain this later on
download_url='https://github.com/alvon-X/alvonCV/archive/refs/tags/v_02.tar.gz', # I explain this later on
keywords=['Computer Vision', 'Face Mesh', 'Face Detection', 'alvon'], # Keywords that define your package best
install_requires=[ # I get to this in a second
'opencv-python',
Expand Down

0 comments on commit 4501d09

Please sign in to comment.