JeVoisBase  1.22
JeVois Smart Embedded Machine Vision Toolkit Base Modules
Share this page:
Loading...
Searching...
No Matches
PyFaceMesh.PyFaceMesh Class Reference

Face mesh detection using MediaPipe. More...

Public Member Functions

 __init__ (self)
 Constructor.
 
 processGUI (self, inframe, helper)
 Process function with GUI output.
 
 calc_bounding_rect (self, iw, ih, landmarks)
 
 draw_landmarks (self, helper, iw, ih, landmarks)
 

Public Attributes

 timer
 
 mp_face_mesh
 
 face_mesh
 
 use_brect
 

Detailed Description

Face mesh detection using MediaPipe.

Detect face landmarks using MediaPipe in Python

This code is derived from sample_facemesh.py at https://github.com/Kazuhito00/mediapipe-python-sample

Author
Laurent Itti
Videomapping:
JVUI 0 0 30.0 CropScale=RGB24@512x288:YUYV 1920 1080 30.0 JeVois PyFaceMesh
Email:
itti@usc.edu
Address:
University of Southern California, HNB-07A, 3641 Watt Way, Los Angeles, CA 90089-2520, USA
Main URL:
http://jevois.org
Support URL:
http://jevois.org/doc
Other URL:
http://iLab.usc.edu
License:
GPL v3
Distribution:
Unrestricted
Restrictions:
None

Definition at line 27 of file PyFaceMesh.py.

Constructor & Destructor Documentation

◆ __init__()

PyFaceMesh.PyFaceMesh.__init__ (   self)

Constructor.

Definition at line 30 of file PyFaceMesh.py.

Member Function Documentation

◆ calc_bounding_rect()

PyFaceMesh.PyFaceMesh.calc_bounding_rect (   self,
  iw,
  ih,
  landmarks 
)

◆ draw_landmarks()

PyFaceMesh.PyFaceMesh.draw_landmarks (   self,
  helper,
  iw,
  ih,
  landmarks 
)

◆ processGUI()

Member Data Documentation

◆ face_mesh

PyFaceMesh.PyFaceMesh.face_mesh

Definition at line 36 of file PyFaceMesh.py.

Referenced by PyFaceMesh.PyFaceMesh.processGUI().

◆ mp_face_mesh

PyFaceMesh.PyFaceMesh.mp_face_mesh

Definition at line 35 of file PyFaceMesh.py.

◆ timer

◆ use_brect


The documentation for this class was generated from the following file: