Socket
Socket
Sign inDemoInstall

FaceDetector-cc

Package Overview
Dependencies
2
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    FaceDetector-cc

Simple python package to simply use mediapipe face detection.


Maintainers
1

Readme

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()

Keywords

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc