JeVoisBase  1.18
JeVois Smart Embedded Machine Vision Toolkit Base Modules
Share this page:
PySelfie.PySelfie Class Reference

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
 

Detailed Description

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

Author
Laurent Itti
Videomapping:
JVUI 0 0 30.0 CropScale=RGB24@512x288:YUYV 1920 1080 30.0 JeVois PySelfie
Email:
itti@usc.edu
Address:
University of Southern California, HNB-07A, 3641 Watt Way, Los Angeles, CA 90089-2520, USA
Main URL:
http://jevois.org
Support URL:
http://jevois.org/doc
Other URL:
http://iLab.usc.edu
License:
GPL v3
Distribution:
Unrestricted
Restrictions:
None

Definition at line 27 of file PySelfie.py.

Constructor & Destructor Documentation

◆ __init__()

def PySelfie.PySelfie.__init__ (   self)

Constructor.

Definition at line 30 of file PySelfie.py.

Member Function Documentation

◆ create_pascal_label_colormapRGBA()

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 77 of file PySelfie.py.

◆ processGUI()

Member Data Documentation

◆ cmapRGBA

PySelfie.PySelfie.cmapRGBA

Definition at line 44 of file PySelfie.py.

Referenced by PySelfie.PySelfie.processGUI().

◆ mp_selfie_segmentation

PySelfie.PySelfie.mp_selfie_segmentation

Definition at line 40 of file PySelfie.py.

◆ selfie_segmentation

PySelfie.PySelfie.selfie_segmentation

Definition at line 41 of file PySelfie.py.

Referenced by PySelfie.PySelfie.processGUI().

◆ timer


The documentation for this class was generated from the following file: