JeVoisBase  1.20
JeVois Smart Embedded Machine Vision Toolkit Base Modules
Share this page:
PyFaceMesh.PyFaceMesh Class Reference

Face mesh detection using MediaPipe. More...

Public Member Functions

def __init__ (self)
 Constructor. More...
 
def processGUI (self, inframe, helper)
 Process function with GUI output. More...
 
def calc_bounding_rect (self, iw, ih, landmarks)
 
def 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__()

def PyFaceMesh.PyFaceMesh.__init__ (   self)

Constructor.

Definition at line 30 of file PyFaceMesh.py.

Member Function Documentation

◆ calc_bounding_rect()

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

Definition at line 76 of file PyFaceMesh.py.

References demo.int.

Referenced by PyFaceMesh.PyFaceMesh.processGUI(), and PyHandDetector.PyHandDetector.processGUI().

◆ draw_landmarks()

def 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: