JeVoisBase  1.20
JeVois Smart Embedded Machine Vision Toolkit Base Modules
Share this page:
PyHandDetector.PyHandDetector Class Reference

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
 

Detailed Description

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

Author
Laurent Itti
Videomapping:
JVUI 0 0 30.0 CropScale=RGB24@512x288:YUYV 1920 1080 30.0 JeVois PyHandDetector
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 27 of file PyHandDetector.py.

Constructor & Destructor Documentation

◆ __init__()

def PyHandDetector.PyHandDetector.__init__ (   self)

Constructor.

Definition at line 30 of file PyHandDetector.py.

Member Function Documentation

◆ calc_bounding_rect()

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().

◆ calc_palm_moment()

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().

◆ draw_landmarks()

def PyHandDetector.PyHandDetector.draw_landmarks (   self,
  helper,
  iw,
  ih,
  cx,
  cy,
  landmarks,
  handedness 
)

◆ processGUI()

Member Data Documentation

◆ hands

PyHandDetector.PyHandDetector.hands

Definition at line 36 of file PyHandDetector.py.

Referenced by PyHandDetector.PyHandDetector.processGUI().

◆ mp_hands

PyHandDetector.PyHandDetector.mp_hands

Definition at line 35 of file PyHandDetector.py.

◆ timer

◆ use_brect

PyHandDetector.PyHandDetector.use_brect

The documentation for this class was generated from the following file: