JeVoisBase
1.20
JeVois Smart Embedded Machine Vision Toolkit Base Modules
|
|
Hand detection using MediaPipe. More...
Public Member Functions | |
def | __init__ (self) |
Constructor. More... | |
def | processGUI (self, inframe, helper) |
Process function with GUI output. More... | |
def | calc_palm_moment (self, iw, ih, landmarks) |
def | calc_bounding_rect (self, iw, ih, landmarks) |
def | 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.
def PyHandDetector.PyHandDetector.__init__ | ( | self | ) |
Constructor.
Definition at line 30 of file PyHandDetector.py.
def PyHandDetector.PyHandDetector.calc_bounding_rect | ( | self, | |
iw, | |||
ih, | |||
landmarks | |||
) |
Definition at line 107 of file PyHandDetector.py.
References demo.int.
Referenced by PyHandDetector.PyHandDetector.processGUI().
def PyHandDetector.PyHandDetector.calc_palm_moment | ( | self, | |
iw, | |||
ih, | |||
landmarks | |||
) |
Definition at line 77 of file PyHandDetector.py.
References demo.int.
Referenced by PyHandDetector.PyHandDetector.processGUI().
def PyHandDetector.PyHandDetector.draw_landmarks | ( | self, | |
helper, | |||
iw, | |||
ih, | |||
cx, | |||
cy, | |||
landmarks, | |||
handedness | |||
) |
Definition at line 119 of file PyHandDetector.py.
References demo.int.
Referenced by PyHandDetector.PyHandDetector.processGUI(), and PyObjectron.PyObjectron.processGUI().
def 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(), PyFaceMesh.PyFaceMesh.draw_landmarks(), PyHandDetector.PyHandDetector.draw_landmarks(), PyHandDetector.PyHandDetector.hands, PythonTutorial2::PythonTutorial2.timer, PyModule::__MODULE__.timer, PyFaceMesh.PyFaceMesh.timer, PyHandDetector.PyHandDetector.timer, PyDMTX.PyDMTX.timer, PyEmotion.PyEmotion.timer, PyCoralDetect.PyCoralDetect.timer, PyCoralSegment.PyCoralSegment.timer, PyCoralClassify.PyCoralClassify.timer, PyClassificationDNN.PyClassificationDNN.timer, FirstPython.FirstPython.timer, PyDetectionDNN.PyDetectionDNN.timer, PyHandDetector.PyHandDetector.use_brect, and PyFaceMesh.PyFaceMesh.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 PythonOpenCV.PythonOpenCV.process(), PythonSandbox.PythonSandbox.process(), PythonParallel.PythonParallel.process(), PythonObject6D.PythonObject6D.process(), PyHandDetector.PyHandDetector.processGUI(), PyPoseDetector.PyPoseDetector.processGUI(), PySelfie.PySelfie.processGUI(), PyObjectron.PyObjectron.processGUI(), PyLicensePlate.PyLicensePlate.processGUI(), PySceneText.PySceneText.processGUI(), PythonTest.PythonTest.processGUI(), PythonSandbox.PythonSandbox.processGUI(), PythonSandbox.PythonSandbox.processNoUSB(), and PythonObject6D.PythonObject6D.processNoUSB().
PyHandDetector.PyHandDetector.use_brect |
Definition at line 38 of file PyHandDetector.py.
Referenced by PyHandDetector.PyHandDetector.processGUI(), and PyPoseDetector.PyPoseDetector.processGUI().