JeVoisBase
1.20
JeVois Smart Embedded Machine Vision Toolkit Base Modules
|
|
Selfie segmentation using MediaPipe. More...
Public Member Functions | |
def | __init__ (self) |
Constructor. More... | |
def | processGUI (self, inframe, helper) |
Process function with GUI output. More... | |
def | create_pascal_label_colormapRGBA (self, alpha, tidx) |
Public Attributes | |
timer | |
mp_selfie_segmentation | |
selfie_segmentation | |
cmapRGBA | |
Selfie segmentation using MediaPipe.
Segment out face and upper body and show them on top of an image background, using MediaPipe in Python
This code is derived from sample_selfie_segmentation.py at https://github.com/Kazuhito00/mediapipe-python-sample
Definition at line 27 of file PySelfie.py.
def PySelfie.PySelfie.__init__ | ( | self | ) |
Constructor.
Definition at line 30 of file PySelfie.py.
def PySelfie.PySelfie.create_pascal_label_colormapRGBA | ( | self, | |
alpha, | |||
tidx | |||
) |
Creates a label colormap used in PASCAL VOC segmentation benchmark. Returns: A Colormap for visualizing segmentation results.
Definition at line 78 of file PySelfie.py.
def PySelfie.PySelfie.processGUI | ( | self, | |
inframe, | |||
helper | |||
) |
Process function with GUI output.
Definition at line 48 of file PySelfie.py.
References PySelfie.PySelfie.cmapRGBA, PyCoralSegment.PyCoralSegment.cmapRGBA, PySelfie.PySelfie.selfie_segmentation, PyModule::__MODULE__.timer, PythonTutorial2::PythonTutorial2.timer, PyFaceMesh.PyFaceMesh.timer, PyHandDetector.PyHandDetector.timer, PyPoseDetector.PyPoseDetector.timer, PyDMTX.PyDMTX.timer, PySelfie.PySelfie.timer, PyObjectron.PyObjectron.timer, PyEmotion.PyEmotion.timer, PyLicensePlate.PyLicensePlate.timer, PyCoralDetect.PyCoralDetect.timer, PyCoralSegment.PyCoralSegment.timer, PySceneText.PySceneText.timer, PyCoralClassify.PyCoralClassify.timer, PyClassificationDNN.PyClassificationDNN.timer, FirstPython.FirstPython.timer, and PyDetectionDNN.PyDetectionDNN.timer.
PySelfie.PySelfie.cmapRGBA |
Definition at line 44 of file PySelfie.py.
Referenced by PySelfie.PySelfie.processGUI().
PySelfie.PySelfie.mp_selfie_segmentation |
Definition at line 40 of file PySelfie.py.
PySelfie.PySelfie.selfie_segmentation |
Definition at line 41 of file PySelfie.py.
Referenced by PySelfie.PySelfie.processGUI().
PySelfie.PySelfie.timer |
Definition at line 37 of file PySelfie.py.
Referenced by PythonOpenCV.PythonOpenCV.process(), PythonSandbox.PythonSandbox.process(), PythonParallel.PythonParallel.process(), PythonObject6D.PythonObject6D.process(), PySelfie.PySelfie.processGUI(), PythonTest.PythonTest.processGUI(), PythonSandbox.PythonSandbox.processGUI(), PythonSandbox.PythonSandbox.processNoUSB(), and PythonObject6D.PythonObject6D.processNoUSB().