JeVoisBase
1.20
JeVois Smart Embedded Machine Vision Toolkit Base Modules
|
|
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 | |
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
Definition at line 30 of file PyObjectron.py.
def PyObjectron.PyObjectron.__init__ | ( | self | ) |
Constructor.
Definition at line 33 of file PyObjectron.py.
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().
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().
def PyObjectron.PyObjectron.processGUI | ( | self, | |
inframe, | |||
helper | |||
) |
Process function with GUI output.
Definition at line 54 of file PyObjectron.py.
References PyObjectron.PyObjectron.draw_axis(), PyObjectron.PyObjectron.draw_landmarks(), PyFaceMesh.PyFaceMesh.draw_landmarks(), PyHandDetector.PyHandDetector.draw_landmarks(), PyObjectron.PyObjectron.objectron, PythonTutorial2::PythonTutorial2.timer, PyModule::__MODULE__.timer, PyFaceMesh.PyFaceMesh.timer, PyHandDetector.PyHandDetector.timer, PyDMTX.PyDMTX.timer, PyObjectron.PyObjectron.timer, PyEmotion.PyEmotion.timer, PyLicensePlate.PyLicensePlate.timer, PyCoralDetect.PyCoralDetect.timer, PyCoralSegment.PyCoralSegment.timer, PyCoralClassify.PyCoralClassify.timer, PyClassificationDNN.PyClassificationDNN.timer, FirstPython.FirstPython.timer, and PyDetectionDNN.PyDetectionDNN.timer.
PyObjectron.PyObjectron.mp_objectron |
Definition at line 44 of file PyObjectron.py.
Referenced by PyObjectron.PyObjectron.draw_landmarks().
PyObjectron.PyObjectron.objectron |
Definition at line 45 of file PyObjectron.py.
Referenced by PyObjectron.PyObjectron.processGUI().
PyObjectron.PyObjectron.timer |
Definition at line 41 of file PyObjectron.py.
Referenced by PythonOpenCV.PythonOpenCV.process(), PythonSandbox.PythonSandbox.process(), PythonParallel.PythonParallel.process(), PythonObject6D.PythonObject6D.process(), PyPoseDetector.PyPoseDetector.processGUI(), PySelfie.PySelfie.processGUI(), PyObjectron.PyObjectron.processGUI(), PySceneText.PySceneText.processGUI(), PythonTest.PythonTest.processGUI(), PythonSandbox.PythonSandbox.processGUI(), PythonSandbox.PythonSandbox.processNoUSB(), and PythonObject6D.PythonObject6D.processNoUSB().