JeVoisBase  1.22
JeVois Smart Embedded Machine Vision Toolkit Base Modules
Share this page:
Loading...
Searching...
No Matches
PyHandDetector.PyHandDetector Class Reference

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
 

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

PyHandDetector.PyHandDetector.__init__ (   self)

Constructor.

Definition at line 30 of file PyHandDetector.py.

Member Function Documentation

◆ calc_bounding_rect()

PyHandDetector.PyHandDetector.calc_bounding_rect (   self,
  iw,
  ih,
  landmarks 
)

◆ calc_palm_moment()

PyHandDetector.PyHandDetector.calc_palm_moment (   self,
  iw,
  ih,
  landmarks 
)

Definition at line 77 of file PyHandDetector.py.

Referenced by PyHandDetector.PyHandDetector.processGUI().

◆ draw_landmarks()

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: