Skip to main content

Computer Vision Helper Packages


  • Face Detection
  • Face Mesh

Install the package

pip install alvonCV

Demo Code for Face Detection

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

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

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)

Metadata

Release files for alvonCV 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for alvonCV 0.2.1
File Size Uploaded
alvonCV-0.2.1.tar.gz 5.9 kB Details

Release files / alvonCV-0.2.1.tar.gz

Download URL alvonCV-0.2.1.tar.gz
Size 5.9 kB
Tags Source
SHA-256 checksum
How to use checksums
b234407497300596f61200522315fc5bec8e2bcd5ea9944aad5c29bcd48a9cf4
BLAKE2b-256 checksum
How to use checksums
dc2ac14b71b07f82cf7789949e58d2deb5ebc48af620bbe1bfb27351b10130ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.6

Release history Release notifications | RSS feed

This release

0.2.1 This release

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page