Simple python package to simply use mediapipe face detection.
Project description
FaceDetector-cc Module
Simple python package to simply use mediapipe face detection.
Author Details
Name : Chanchal Roy
Email : croy7667@gmail.com
GitHub Project Details
Project : FaceDetector-cc
Installation
Install FaceDetector-cc with pip
pip install FaceDetector-cc
Usage
import FaceDec
import time
RED = (0, 0, 255)
YELLOW = (0, 255, 255)
timeS, timeE = 0, 0
obj = FaceDec.FaceDetector()
cam = obj.init_cam()
while cam.isOpened():
success, frame = cam.read()
if not success: continue
face_lm, face_bbox = obj.detect_face(frame)
print(face_lm, face_bbox, sep='\n', end='\n\n')
timeE: float = time.time()
fps = int(1 / (timeE - timeS))
timeS = timeE
c.putText(frame, str(f'FPS : {fps}'), (10, 30), 0, 1, YELLOW, 2)
c.imshow('Face Detection : Chanchal Roy', frame)
if c.waitKey(1) & 0xff == ord('q'): break
cam.release()
c.destroyAllWindows()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for FaceDetector_cc-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b84511c69ae7884eeb3d24dd7547468f1e2e52a1476a627eac7c99ea498033f9 |
|
MD5 | eab8af8ef827d64087249fbb95ebf56e |
|
BLAKE2b-256 | 3bfa7115db21cf8630045594aabac76dd4e82ca9c80ff482b36ac0611fb648fc |