JeVoisBase
1.22
JeVois Smart Embedded Machine Vision Toolkit Base Modules
|
|
Selfie segmentation using MediaPipe. More...
Public Member Functions | |
__init__ (self) | |
Constructor. | |
processGUI (self, inframe, helper) | |
Process function with GUI output. | |
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.
PySelfie.PySelfie.__init__ | ( | self | ) |
Constructor.
Definition at line 30 of file PySelfie.py.
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.
PySelfie.PySelfie.processGUI | ( | self, | |
inframe, | |||
helper | |||
) |
Process function with GUI output.
Definition at line 48 of file PySelfie.py.
References PyCoralSegment.PyCoralSegment.cmapRGBA, PySelfie.PySelfie.cmapRGBA, PySelfie.PySelfie.selfie_segmentation, 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, and PythonTest.PythonTest.timer.
PySelfie.PySelfie.cmapRGBA |
Definition at line 44 of file PySelfie.py.
Referenced by PyCoralSegment.PyCoralSegment.processGUI(), and 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 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().