JeVoisBase
1.20
JeVois Smart Embedded Machine Vision Toolkit Base Modules
|
|
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 | |
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
Definition at line 27 of file PyFaceMesh.py.
def PyFaceMesh.PyFaceMesh.__init__ | ( | self | ) |
Constructor.
Definition at line 30 of file PyFaceMesh.py.
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().
def PyFaceMesh.PyFaceMesh.draw_landmarks | ( | self, | |
helper, | |||
iw, | |||
ih, | |||
landmarks | |||
) |
Definition at line 88 of file PyFaceMesh.py.
References demo.int.
Referenced by PyFaceMesh.PyFaceMesh.processGUI(), PyHandDetector.PyHandDetector.processGUI(), and PyObjectron.PyObjectron.processGUI().
def PyFaceMesh.PyFaceMesh.processGUI | ( | self, | |
inframe, | |||
helper | |||
) |
Process function with GUI output.
Definition at line 42 of file PyFaceMesh.py.
References PyFaceMesh.PyFaceMesh.calc_bounding_rect(), PyFaceMesh.PyFaceMesh.draw_landmarks(), PyFaceMesh.PyFaceMesh.face_mesh, PythonTutorial2::PythonTutorial2.timer, PyModule::__MODULE__.timer, PyFaceMesh.PyFaceMesh.timer, PyDMTX.PyDMTX.timer, PyEmotion.PyEmotion.timer, PyCoralDetect.PyCoralDetect.timer, PyCoralSegment.PyCoralSegment.timer, PyCoralClassify.PyCoralClassify.timer, PyClassificationDNN.PyClassificationDNN.timer, FirstPython.FirstPython.timer, PyDetectionDNN.PyDetectionDNN.timer, and PyFaceMesh.PyFaceMesh.use_brect.
PyFaceMesh.PyFaceMesh.face_mesh |
Definition at line 36 of file PyFaceMesh.py.
Referenced by PyFaceMesh.PyFaceMesh.processGUI().
PyFaceMesh.PyFaceMesh.mp_face_mesh |
Definition at line 35 of file PyFaceMesh.py.
PyFaceMesh.PyFaceMesh.timer |
Definition at line 32 of file PyFaceMesh.py.
Referenced by PythonOpenCV.PythonOpenCV.process(), PythonSandbox.PythonSandbox.process(), PythonParallel.PythonParallel.process(), PythonObject6D.PythonObject6D.process(), PyHandDetector.PyHandDetector.processGUI(), PyPoseDetector.PyPoseDetector.processGUI(), PyFaceMesh.PyFaceMesh.processGUI(), PySelfie.PySelfie.processGUI(), PyObjectron.PyObjectron.processGUI(), PyLicensePlate.PyLicensePlate.processGUI(), PySceneText.PySceneText.processGUI(), PythonTest.PythonTest.processGUI(), PythonSandbox.PythonSandbox.processGUI(), PythonSandbox.PythonSandbox.processNoUSB(), and PythonObject6D.PythonObject6D.processNoUSB().
PyFaceMesh.PyFaceMesh.use_brect |
Definition at line 38 of file PyFaceMesh.py.
Referenced by PyFaceMesh.PyFaceMesh.processGUI(), PyPoseDetector.PyPoseDetector.processGUI(), and PyHandDetector.PyHandDetector.processGUI().