JeVoisBase  1.21
JeVois Smart Embedded Machine Vision Toolkit Base Modules
Share this page:
Loading...
Searching...
No Matches
PyObjectron.PyObjectron Class Reference

3D object detection using MediaPipe More...

Public Member Functions

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

Public Attributes

 model_name
 
 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__()

PyObjectron.PyObjectron.__init__ (   self)

Constructor.

Definition at line 33 of file PyObjectron.py.

Member Function Documentation

◆ draw_axis()

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

Definition at line 113 of file PyObjectron.py.

Referenced by PyObjectron.PyObjectron.processGUI().

◆ draw_landmarks()

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

◆ processGUI()

Member Data Documentation

◆ model_name

PyObjectron.PyObjectron.model_name

Definition at line 38 of file PyObjectron.py.

Referenced by PyObjectron.PyObjectron.processGUI().

◆ 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: