JeVoisBase
1.22
JeVois Smart Embedded Machine Vision Toolkit Base Modules
|
|
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 | |
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.
PyFaceMesh.PyFaceMesh.__init__ | ( | self | ) |
Constructor.
Definition at line 30 of file PyFaceMesh.py.
PyFaceMesh.PyFaceMesh.calc_bounding_rect | ( | self, | |
iw, | |||
ih, | |||
landmarks | |||
) |
Definition at line 76 of file PyFaceMesh.py.
Referenced by PyFaceMesh.PyFaceMesh.processGUI(), and PyHandDetector.PyHandDetector.processGUI().
PyFaceMesh.PyFaceMesh.draw_landmarks | ( | self, | |
helper, | |||
iw, | |||
ih, | |||
landmarks | |||
) |
Definition at line 88 of file PyFaceMesh.py.
Referenced by PyFaceMesh.PyFaceMesh.processGUI(), PyHandDetector.PyHandDetector.processGUI(), and PyObjectron.PyObjectron.processGUI().
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(), PyHandDetector.PyHandDetector.calc_bounding_rect(), PyHandDetector.PyHandDetector.draw_landmarks(), PyFaceMesh.PyFaceMesh.draw_landmarks(), PyObjectron.PyObjectron.draw_landmarks(), PyFaceMesh.PyFaceMesh.face_mesh, AprilTag.AprilTag.timer, FirstPython.FirstPython.timer, PyClassificationDNN.PyClassificationDNN.timer, PyCoralClassify.PyCoralClassify.timer, PyCoralDetect.PyCoralDetect.timer, PyCoralSegment.PyCoralSegment.timer, PyDetectionDNN.PyDetectionDNN.timer, PyDMTX.PyDMTX.timer, PyEmotion.PyEmotion.timer, PyFaceMesh.PyFaceMesh.timer, PyHandDetector.PyHandDetector.timer, PyLicensePlate.PyLicensePlate.timer, PyObjectron.PyObjectron.timer, PyPoseDetector.PyPoseDetector.timer, PySceneText.PySceneText.timer, PySelfie.PySelfie.timer, PythonObject6D.PythonObject6D.timer, PythonOpenCV.PythonOpenCV.timer, PythonParallel.PythonParallel.timer, PythonSandbox.PythonSandbox.timer, PythonTest.PythonTest.timer, PyFaceMesh.PyFaceMesh.use_brect, PyHandDetector.PyHandDetector.use_brect, and PyPoseDetector.PyPoseDetector.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 FirstPython.FirstPython.process(), PyClassificationDNN.PyClassificationDNN.process(), PyCoralClassify.PyCoralClassify.process(), PyCoralDetect.PyCoralDetect.process(), PyCoralSegment.PyCoralSegment.process(), PyDetectionDNN.PyDetectionDNN.process(), PyDMTX.PyDMTX.process(), PythonObject6D.PythonObject6D.process(), PythonOpenCV.PythonOpenCV.process(), PythonParallel.PythonParallel.process(), PythonSandbox.PythonSandbox.process(), AprilTag.AprilTag.processGUI(), PyCoralClassify.PyCoralClassify.processGUI(), PyCoralDetect.PyCoralDetect.processGUI(), PyCoralSegment.PyCoralSegment.processGUI(), PyFaceMesh.PyFaceMesh.processGUI(), PyHandDetector.PyHandDetector.processGUI(), PyLicensePlate.PyLicensePlate.processGUI(), PyObjectron.PyObjectron.processGUI(), PyPoseDetector.PyPoseDetector.processGUI(), PySceneText.PySceneText.processGUI(), PySelfie.PySelfie.processGUI(), PythonOpenCV.PythonOpenCV.processGUI(), PythonSandbox.PythonSandbox.processGUI(), PythonTest.PythonTest.processGUI(), FirstPython.FirstPython.processNoUSB(), PythonObject6D.PythonObject6D.processNoUSB(), and PythonSandbox.PythonSandbox.processNoUSB().
PyFaceMesh.PyFaceMesh.use_brect |
Definition at line 38 of file PyFaceMesh.py.
Referenced by PyFaceMesh.PyFaceMesh.processGUI(), PyHandDetector.PyHandDetector.processGUI(), and PyPoseDetector.PyPoseDetector.processGUI().