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

3D object detection using MediaPipe More...

Public Member Functions

def __init__ (self)
 Constructor. More...
 
def processGUI (self, inframe, helper)
 Process function with GUI output. More...
 
def draw_landmarks (self, helper, iw, ih, landmarks)
 
def draw_axis (self, helper, iw, ih, rotation, translation, axis_length)
 

Public Attributes

 timer
 
 mp_objectron
 
 objectron
 

Detailed Description

3D object detection using MediaPipe

Detect objects and draw estimated 3D bounding boxes, using MediaPipe in Python

Only works for a few pre-trained objects: 'Shoe', 'Chair', 'Cup', 'Camera', with Shoe selected by default. So point the camera to your shoes and see what happens...

This code is derived from sample_objectron.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 PyObjectron
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 30 of file PyObjectron.py.

Constructor & Destructor Documentation

◆ __init__()

def PyObjectron.PyObjectron.__init__ (   self)

Constructor.

Definition at line 33 of file PyObjectron.py.

Member Function Documentation

◆ draw_axis()

def PyObjectron.PyObjectron.draw_axis (   self,
  helper,
  iw,
  ih,
  rotation,
  translation,
  axis_length 
)

Definition at line 112 of file PyObjectron.py.

Referenced by PyObjectron.PyObjectron.processGUI().

◆ draw_landmarks()

def PyObjectron.PyObjectron.draw_landmarks (   self,
  helper,
  iw,
  ih,
  landmarks 
)

Definition at line 87 of file PyObjectron.py.

References PyObjectron.PyObjectron.mp_objectron.

Referenced by PyObjectron.PyObjectron.processGUI().

◆ processGUI()

Member Data Documentation

◆ mp_objectron

PyObjectron.PyObjectron.mp_objectron

Definition at line 44 of file PyObjectron.py.

Referenced by PyObjectron.PyObjectron.draw_landmarks().

◆ objectron

PyObjectron.PyObjectron.objectron

Definition at line 45 of file PyObjectron.py.

Referenced by PyObjectron.PyObjectron.processGUI().

◆ timer


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