JeVoisBase
1.22
JeVois Smart Embedded Machine Vision Toolkit Base Modules
|
|
Hand detection using MediaPipe. More...
Public Member Functions | |
__init__ (self) | |
Constructor. | |
processGUI (self, inframe, helper) | |
Process function with GUI output. | |
calc_palm_moment (self, iw, ih, landmarks) | |
calc_bounding_rect (self, iw, ih, landmarks) | |
draw_landmarks (self, helper, iw, ih, cx, cy, landmarks, handedness) | |
Public Attributes | |
timer | |
mp_hands | |
hands | |
use_brect | |
Hand detection using MediaPipe.
Detect hands using MediaPipe in Python
This code is derived from sample_hand.py at https://github.com/Kazuhito00/mediapipe-python-sample
Definition at line 27 of file PyHandDetector.py.
PyHandDetector.PyHandDetector.__init__ | ( | self | ) |
Constructor.
Definition at line 30 of file PyHandDetector.py.
PyHandDetector.PyHandDetector.calc_bounding_rect | ( | self, | |
iw, | |||
ih, | |||
landmarks | |||
) |
Definition at line 107 of file PyHandDetector.py.
Referenced by PyFaceMesh.PyFaceMesh.processGUI(), and PyHandDetector.PyHandDetector.processGUI().
PyHandDetector.PyHandDetector.calc_palm_moment | ( | self, | |
iw, | |||
ih, | |||
landmarks | |||
) |
Definition at line 77 of file PyHandDetector.py.
Referenced by PyHandDetector.PyHandDetector.processGUI().
PyHandDetector.PyHandDetector.draw_landmarks | ( | self, | |
helper, | |||
iw, | |||
ih, | |||
cx, | |||
cy, | |||
landmarks, | |||
handedness | |||
) |
Definition at line 119 of file PyHandDetector.py.
Referenced by PyFaceMesh.PyFaceMesh.processGUI(), PyHandDetector.PyHandDetector.processGUI(), and PyObjectron.PyObjectron.processGUI().
PyHandDetector.PyHandDetector.processGUI | ( | self, | |
inframe, | |||
helper | |||
) |
Process function with GUI output.
Definition at line 42 of file PyHandDetector.py.
References PyFaceMesh.PyFaceMesh.calc_bounding_rect(), PyHandDetector.PyHandDetector.calc_bounding_rect(), PyHandDetector.PyHandDetector.calc_palm_moment(), PyHandDetector.PyHandDetector.draw_landmarks(), PyFaceMesh.PyFaceMesh.draw_landmarks(), PyObjectron.PyObjectron.draw_landmarks(), PyHandDetector.PyHandDetector.hands, 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, PythonTest.PythonTest.timer, PyFaceMesh.PyFaceMesh.use_brect, PyHandDetector.PyHandDetector.use_brect, and PyPoseDetector.PyPoseDetector.use_brect.
PyHandDetector.PyHandDetector.hands |
Definition at line 36 of file PyHandDetector.py.
Referenced by PyHandDetector.PyHandDetector.processGUI().
PyHandDetector.PyHandDetector.mp_hands |
Definition at line 35 of file PyHandDetector.py.
PyHandDetector.PyHandDetector.timer |
Definition at line 32 of file PyHandDetector.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().
PyHandDetector.PyHandDetector.use_brect |
Definition at line 38 of file PyHandDetector.py.
Referenced by PyFaceMesh.PyFaceMesh.processGUI(), PyHandDetector.PyHandDetector.processGUI(), and PyPoseDetector.PyPoseDetector.processGUI().