JeVoisBase
1.21
JeVois Smart Embedded Machine Vision Toolkit Base Modules
|
|
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 | |
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.
PyObjectron.PyObjectron.__init__ | ( | self | ) |
Constructor.
Definition at line 33 of file PyObjectron.py.
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().
PyObjectron.PyObjectron.draw_landmarks | ( | self, | |
helper, | |||
iw, | |||
ih, | |||
landmarks | |||
) |
Definition at line 88 of file PyObjectron.py.
References PyObjectron.PyObjectron.mp_objectron.
Referenced by PyFaceMesh.PyFaceMesh.processGUI(), PyHandDetector.PyHandDetector.processGUI(), and PyObjectron.PyObjectron.processGUI().
PyObjectron.PyObjectron.processGUI | ( | self, | |
inframe, | |||
helper | |||
) |
Process function with GUI output.
Definition at line 54 of file PyObjectron.py.
References PyObjectron.PyObjectron.draw_axis(), PyHandDetector.PyHandDetector.draw_landmarks(), PyFaceMesh.PyFaceMesh.draw_landmarks(), PyObjectron.PyObjectron.draw_landmarks(), PyObjectron.PyObjectron.model_name, PyObjectron.PyObjectron.objectron, AprilTag.AprilTag.timer, FirstPython.FirstPython.timer, PyClassificationDNN.PyClassificationDNN.timer, PyCoralClassify.PyCoralClassify.timer, PyCoralDetect.PyCoralDetect.timer, PyCoralSegment.PyCoralSegment.timer, PyDetectionDNN.PyDetectionDNN.timer, PyDMTX.PyDMTX.timer, PyEmotion.PyEmotion.timer, PyFaceMesh.PyFaceMesh.timer, PyHandDetector.PyHandDetector.timer, PyLicensePlate.PyLicensePlate.timer, PyObjectron.PyObjectron.timer, PyPoseDetector.PyPoseDetector.timer, PySceneText.PySceneText.timer, PySelfie.PySelfie.timer, PythonObject6D.PythonObject6D.timer, PythonOpenCV.PythonOpenCV.timer, PythonParallel.PythonParallel.timer, PythonSandbox.PythonSandbox.timer, and PythonTest.PythonTest.timer.
PyObjectron.PyObjectron.model_name |
Definition at line 38 of file PyObjectron.py.
Referenced by PyObjectron.PyObjectron.processGUI().
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 FirstPython.FirstPython.process(), PyClassificationDNN.PyClassificationDNN.process(), PyCoralClassify.PyCoralClassify.process(), PyCoralDetect.PyCoralDetect.process(), PyCoralSegment.PyCoralSegment.process(), PyDetectionDNN.PyDetectionDNN.process(), PyDMTX.PyDMTX.process(), PythonObject6D.PythonObject6D.process(), PythonOpenCV.PythonOpenCV.process(), PythonParallel.PythonParallel.process(), PythonSandbox.PythonSandbox.process(), AprilTag.AprilTag.processGUI(), PyCoralClassify.PyCoralClassify.processGUI(), PyCoralDetect.PyCoralDetect.processGUI(), PyCoralSegment.PyCoralSegment.processGUI(), PyFaceMesh.PyFaceMesh.processGUI(), PyHandDetector.PyHandDetector.processGUI(), PyLicensePlate.PyLicensePlate.processGUI(), PyObjectron.PyObjectron.processGUI(), PyPoseDetector.PyPoseDetector.processGUI(), PySceneText.PySceneText.processGUI(), PySelfie.PySelfie.processGUI(), PythonOpenCV.PythonOpenCV.processGUI(), PythonSandbox.PythonSandbox.processGUI(), PythonTest.PythonTest.processGUI(), FirstPython.FirstPython.processNoUSB(), PythonObject6D.PythonObject6D.processNoUSB(), and PythonSandbox.PythonSandbox.processNoUSB().