JeVoisBase
1.18
JeVois Smart Embedded Machine Vision Toolkit Base Modules
|
|
Semantic segmentation using Coral Edge TPU. More...
Public Member Functions | |
def | __init__ (self) |
Constructor. More... | |
def | create_pascal_label_colormap (self) |
def | create_pascal_label_colormapRGBA (self, alpha, tidx) |
def | process (self, inframe, outframe) |
JeVois main processing function. More... | |
def | processGUI (self, inframe, helper) |
Process function with GUI output. More... | |
Public Attributes | |
rgb | |
keepaspect | |
model | |
interpreter | |
timer | |
cmapRGB | |
cmapRGBA | |
Semantic segmentation using Coral Edge TPU.
More pre-trained models are available at https://coral.ai/models/
Definition at line 31 of file PyCoralSegment.py.
def PyCoralSegment.PyCoralSegment.__init__ | ( | self | ) |
Constructor.
Definition at line 34 of file PyCoralSegment.py.
def PyCoralSegment.PyCoralSegment.create_pascal_label_colormap | ( | self | ) |
Creates a label colormap used in PASCAL VOC segmentation benchmark. Returns: A Colormap for visualizing segmentation results.
Definition at line 61 of file PyCoralSegment.py.
def PyCoralSegment.PyCoralSegment.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 77 of file PyCoralSegment.py.
def PyCoralSegment.PyCoralSegment.process | ( | self, | |
inframe, | |||
outframe | |||
) |
JeVois main processing function.
Definition at line 96 of file PyCoralSegment.py.
References PyCoralSegment.PyCoralSegment.cmapRGB, PyCoralDetect.PyCoralDetect.interpreter, PyCoralSegment.PyCoralSegment.interpreter, PyCoralClassify.PyCoralClassify.interpreter, TensorFlow.interpreter, PyCoralSegment.PyCoralSegment.keepaspect, mobilenet_v1.MobileNetV1.model, mobilenet_v2.MobileNetV2.model, mp_palmdet.MPPalmDet.model, lpd_yunet.LPD_YuNet.model, PyCoralDetect.PyCoralDetect.model, PyCoralSegment.PyCoralSegment.model, PyNetOpenCV.PyNetOpenCV.model, PyCoralClassify.PyCoralClassify.model, PyClassificationDNN.PyClassificationDNN.model, TensorFlow.model, PyCoralSegment.PyCoralSegment.rgb, PyCoralDetect.PyCoralDetect.rgb, PyClassificationDNN.PyClassificationDNN.rgb, PyCoralClassify.PyCoralClassify.rgb, PythonTutorial2::PythonTutorial2.timer, demangling.timer, PyCoralDetect.PyCoralDetect.timer, PyCoralSegment.PyCoralSegment.timer, PyCoralClassify.PyCoralClassify.timer, PyClassificationDNN.PyClassificationDNN.timer, and FirstPython.FirstPython.timer.
def PyCoralSegment.PyCoralSegment.processGUI | ( | self, | |
inframe, | |||
helper | |||
) |
Process function with GUI output.
Definition at line 149 of file PyCoralSegment.py.
References PyCoralSegment.PyCoralSegment.cmapRGBA, PyCoralDetect.PyCoralDetect.interpreter, PyCoralSegment.PyCoralSegment.interpreter, PyCoralClassify.PyCoralClassify.interpreter, TensorFlow.interpreter, PyCoralSegment.PyCoralSegment.keepaspect, mobilenet_v1.MobileNetV1.model, mobilenet_v2.MobileNetV2.model, mp_palmdet.MPPalmDet.model, lpd_yunet.LPD_YuNet.model, PyCoralDetect.PyCoralDetect.model, PyCoralSegment.PyCoralSegment.model, PyNetOpenCV.PyNetOpenCV.model, PyCoralClassify.PyCoralClassify.model, PyClassificationDNN.PyClassificationDNN.model, TensorFlow.model, PyCoralSegment.PyCoralSegment.rgb, PyCoralDetect.PyCoralDetect.rgb, PyClassificationDNN.PyClassificationDNN.rgb, PyCoralClassify.PyCoralClassify.rgb, PythonTutorial2::PythonTutorial2.timer, demangling.timer, PyCoralDetect.PyCoralDetect.timer, PyCoralSegment.PyCoralSegment.timer, PyCoralClassify.PyCoralClassify.timer, PyClassificationDNN.PyClassificationDNN.timer, and FirstPython.FirstPython.timer.
PyCoralSegment.PyCoralSegment.cmapRGB |
Definition at line 57 of file PyCoralSegment.py.
Referenced by PyCoralSegment.PyCoralSegment.process().
PyCoralSegment.PyCoralSegment.cmapRGBA |
Definition at line 58 of file PyCoralSegment.py.
Referenced by PySelfie.PySelfie.processGUI(), and PyCoralSegment.PyCoralSegment.processGUI().
PyCoralSegment.PyCoralSegment.interpreter |
Definition at line 53 of file PyCoralSegment.py.
Referenced by PyCoralSegment.PyCoralSegment.process(), and PyCoralSegment.PyCoralSegment.processGUI().
PyCoralSegment.PyCoralSegment.keepaspect |
Definition at line 36 of file PyCoralSegment.py.
Referenced by PyCoralSegment.PyCoralSegment.process(), and PyCoralSegment.PyCoralSegment.processGUI().
PyCoralSegment.PyCoralSegment.model |
Definition at line 41 of file PyCoralSegment.py.
Referenced by PyCoralSegment.PyCoralSegment.process(), PyDetectionDNN.PyDetectionDNN.process(), PyLicensePlate.PyLicensePlate.processGUI(), and PyCoralSegment.PyCoralSegment.processGUI().
PyCoralSegment.PyCoralSegment.rgb |
Definition at line 35 of file PyCoralSegment.py.
Referenced by PyCoralSegment.PyCoralSegment.process(), PyDetectionDNN.PyDetectionDNN.process(), and PyCoralSegment.PyCoralSegment.processGUI().
PyCoralSegment.PyCoralSegment.timer |
Definition at line 56 of file PyCoralSegment.py.
Referenced by PyDMTX.PyDMTX.process(), PythonSandbox.PythonSandbox.process(), PythonOpenCV.PythonOpenCV.process(), PyCoralSegment.PyCoralSegment.process(), PythonParallel.PythonParallel.process(), PyDetectionDNN.PyDetectionDNN.process(), PythonObject6D.PythonObject6D.process(), PyPoseDetector.PyPoseDetector.processGUI(), PyFaceMesh.PyFaceMesh.processGUI(), PyHandDetector.PyHandDetector.processGUI(), PySelfie.PySelfie.processGUI(), PyObjectron.PyObjectron.processGUI(), PyLicensePlate.PyLicensePlate.processGUI(), PySceneText.PySceneText.processGUI(), PythonSandbox.PythonSandbox.processGUI(), PythonTest.PythonTest.processGUI(), PyCoralSegment.PyCoralSegment.processGUI(), and PythonObject6D.PythonObject6D.processNoUSB().