Public Member Functions | Public Attributes | Static Public Attributes | Private Member Functions | List of all members
node_scripts.hand_pose_estimation_2d.HandPoseEstimation2D Class Reference
Inheritance diagram for node_scripts.hand_pose_estimation_2d.HandPoseEstimation2D:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self)
 
def detect_bbox (self, input_image)
 
def detect_hand (self, input_image, hands_rect)
 
def hand_pose_estimate (self, bgr, header)
 
def nmslocation (self, src, threshold)
 
def pyramid_inference (self, input_image)
 
def subscribe (self)
 
def transform_net_input (self, tensor, src_img, hands_rect=None, tensor_idx=0)
 
def unsubscribe (self)
 
def visualize (self)
 

Public Attributes

 backend
 
 bridge
 
 camera_info_msg
 
 gpu
 
 hand_pose_2d_pub
 
 hand_pose_pub
 
 image_pub
 
 label_bbox_min
 
 label_hand_min
 
 missing_point
 
 model
 
 skeleton_pub
 
 sub_info
 
 subs
 
 TRAIN_IMAGE_HEIGHT
 
 TRAIN_IMAGE_WIDTH
 
 with_depth
 

Static Public Attributes

list CONNECTION_PAIR
 
dictionary FINGERNAME2INDEX = {name: i for i, name in enumerate(INDEX2FINGERNAME)}
 
list HAND_COLORS
 
list INDEX2FINGERNAME
 
int NUMBER_OF_FINGER_JOINT = 3
 
int NUMBER_OF_FINGERS = 5
 

Private Member Functions

def _cb (self, img_msg)
 
def _cb_cam_info (self, msg)
 
def _cb_with_depth (self, img_msg, depth_msg)
 
def _cb_with_depth_info (self, img_msg, depth_msg, camera_info_msg)
 
def _create_2d_hand_pose_array_msgs (self, hands_points, hands_point_scores, hands_score, header)
 
def _draw_joints (self, frame, hands_points, hands_rect)
 
def _get_srhand_pretrained_model (self)
 
def _hand_pose_estimate_torch_backend (self, frame, header)
 
def _load_model (self)
 
def _load_torch_model (self)
 

Detailed Description

Definition at line 55 of file hand_pose_estimation_2d.py.

Constructor & Destructor Documentation

◆ __init__()

def node_scripts.hand_pose_estimation_2d.HandPoseEstimation2D.__init__ (   self)

Definition at line 115 of file hand_pose_estimation_2d.py.

Member Function Documentation

◆ _cb()

def node_scripts.hand_pose_estimation_2d.HandPoseEstimation2D._cb (   self,
  img_msg 
)
private

Definition at line 317 of file hand_pose_estimation_2d.py.

◆ _cb_cam_info()

def node_scripts.hand_pose_estimation_2d.HandPoseEstimation2D._cb_cam_info (   self,
  msg 
)
private

Definition at line 233 of file hand_pose_estimation_2d.py.

◆ _cb_with_depth()

def node_scripts.hand_pose_estimation_2d.HandPoseEstimation2D._cb_with_depth (   self,
  img_msg,
  depth_msg 
)
private

Definition at line 239 of file hand_pose_estimation_2d.py.

◆ _cb_with_depth_info()

def node_scripts.hand_pose_estimation_2d.HandPoseEstimation2D._cb_with_depth_info (   self,
  img_msg,
  depth_msg,
  camera_info_msg 
)
private

Definition at line 244 of file hand_pose_estimation_2d.py.

◆ _create_2d_hand_pose_array_msgs()

def node_scripts.hand_pose_estimation_2d.HandPoseEstimation2D._create_2d_hand_pose_array_msgs (   self,
  hands_points,
  hands_point_scores,
  hands_score,
  header 
)
private

Definition at line 337 of file hand_pose_estimation_2d.py.

◆ _draw_joints()

def node_scripts.hand_pose_estimation_2d.HandPoseEstimation2D._draw_joints (   self,
  frame,
  hands_points,
  hands_rect 
)
private

Definition at line 378 of file hand_pose_estimation_2d.py.

◆ _get_srhand_pretrained_model()

def node_scripts.hand_pose_estimation_2d.HandPoseEstimation2D._get_srhand_pretrained_model (   self)
private

Definition at line 175 of file hand_pose_estimation_2d.py.

◆ _hand_pose_estimate_torch_backend()

def node_scripts.hand_pose_estimation_2d.HandPoseEstimation2D._hand_pose_estimate_torch_backend (   self,
  frame,
  header 
)
private

Definition at line 366 of file hand_pose_estimation_2d.py.

◆ _load_model()

def node_scripts.hand_pose_estimation_2d.HandPoseEstimation2D._load_model (   self)
private

Definition at line 147 of file hand_pose_estimation_2d.py.

◆ _load_torch_model()

def node_scripts.hand_pose_estimation_2d.HandPoseEstimation2D._load_torch_model (   self)
private

Definition at line 153 of file hand_pose_estimation_2d.py.

◆ detect_bbox()

def node_scripts.hand_pose_estimation_2d.HandPoseEstimation2D.detect_bbox (   self,
  input_image 
)

Definition at line 453 of file hand_pose_estimation_2d.py.

◆ detect_hand()

def node_scripts.hand_pose_estimation_2d.HandPoseEstimation2D.detect_hand (   self,
  input_image,
  hands_rect 
)

Definition at line 522 of file hand_pose_estimation_2d.py.

◆ hand_pose_estimate()

def node_scripts.hand_pose_estimation_2d.HandPoseEstimation2D.hand_pose_estimate (   self,
  bgr,
  header 
)

Definition at line 361 of file hand_pose_estimation_2d.py.

◆ nmslocation()

def node_scripts.hand_pose_estimation_2d.HandPoseEstimation2D.nmslocation (   self,
  src,
  threshold 
)

Definition at line 411 of file hand_pose_estimation_2d.py.

◆ pyramid_inference()

def node_scripts.hand_pose_estimation_2d.HandPoseEstimation2D.pyramid_inference (   self,
  input_image 
)

Definition at line 571 of file hand_pose_estimation_2d.py.

◆ subscribe()

def node_scripts.hand_pose_estimation_2d.HandPoseEstimation2D.subscribe (   self)

Definition at line 189 of file hand_pose_estimation_2d.py.

◆ transform_net_input()

def node_scripts.hand_pose_estimation_2d.HandPoseEstimation2D.transform_net_input (   self,
  tensor,
  src_img,
  hands_rect = None,
  tensor_idx = 0 
)

Definition at line 418 of file hand_pose_estimation_2d.py.

◆ unsubscribe()

def node_scripts.hand_pose_estimation_2d.HandPoseEstimation2D.unsubscribe (   self)

Definition at line 226 of file hand_pose_estimation_2d.py.

◆ visualize()

def node_scripts.hand_pose_estimation_2d.HandPoseEstimation2D.visualize (   self)

Definition at line 144 of file hand_pose_estimation_2d.py.

Member Data Documentation

◆ backend

node_scripts.hand_pose_estimation_2d.HandPoseEstimation2D.backend

Definition at line 117 of file hand_pose_estimation_2d.py.

◆ bridge

node_scripts.hand_pose_estimation_2d.HandPoseEstimation2D.bridge

Definition at line 141 of file hand_pose_estimation_2d.py.

◆ camera_info_msg

node_scripts.hand_pose_estimation_2d.HandPoseEstimation2D.camera_info_msg

Definition at line 219 of file hand_pose_estimation_2d.py.

◆ CONNECTION_PAIR

list node_scripts.hand_pose_estimation_2d.HandPoseEstimation2D.CONNECTION_PAIR
static
Initial value:
= [(0, 1), (0, 1), (1, 2), (2, 3),
(0, 5), (4, 5), (5, 6), (6, 7),
(0, 9), (8, 9), (9, 10), (10, 11),
(0, 13), (12, 13), (13, 14), (14, 15),
(0, 17), (16, 17), (17, 18), (18, 19)]

Definition at line 109 of file hand_pose_estimation_2d.py.

◆ FINGERNAME2INDEX

dictionary node_scripts.hand_pose_estimation_2d.HandPoseEstimation2D.FINGERNAME2INDEX = {name: i for i, name in enumerate(INDEX2FINGERNAME)}
static

Definition at line 106 of file hand_pose_estimation_2d.py.

◆ gpu

node_scripts.hand_pose_estimation_2d.HandPoseEstimation2D.gpu

Definition at line 118 of file hand_pose_estimation_2d.py.

◆ HAND_COLORS

list node_scripts.hand_pose_estimation_2d.HandPoseEstimation2D.HAND_COLORS
static
Initial value:
= [
(100, 100, 100),
(100, 0, 0),
(150, 0, 0),
(200, 0, 0),
(255, 0, 0),
(100, 100, 0),
(150, 150, 0),
(200, 200, 0),
(255, 255, 0),
(0, 100, 50),
(0, 150, 75),
(0, 200, 100),
(0, 255, 125),
(0, 50, 100),
(0, 75, 150),
(0, 100, 200),
(0, 125, 255),
(100, 0, 100),
(150, 0, 150),
(200, 0, 200),
(255, 0, 255),
]

Definition at line 57 of file hand_pose_estimation_2d.py.

◆ hand_pose_2d_pub

node_scripts.hand_pose_estimation_2d.HandPoseEstimation2D.hand_pose_2d_pub

Definition at line 137 of file hand_pose_estimation_2d.py.

◆ hand_pose_pub

node_scripts.hand_pose_estimation_2d.HandPoseEstimation2D.hand_pose_pub

Definition at line 133 of file hand_pose_estimation_2d.py.

◆ image_pub

node_scripts.hand_pose_estimation_2d.HandPoseEstimation2D.image_pub

Definition at line 131 of file hand_pose_estimation_2d.py.

◆ INDEX2FINGERNAME

list node_scripts.hand_pose_estimation_2d.HandPoseEstimation2D.INDEX2FINGERNAME
static
Initial value:
= [
"wrist",
"thumb_mcp",
"thumb_pip",
"thumb_dip",
"thumb_tip",
"index_mcp",
"index_pip",
"index_dip",
"index_tip",
"middle_mcp",
"middle_pip",
"middle_dip",
"middle_tip",
"ring_mcp",
"ring_pip",
"ring_dip",
"ring_tip",
"little_mcp",
"little_pip",
"little_dip",
"little_tip",
]

Definition at line 82 of file hand_pose_estimation_2d.py.

◆ label_bbox_min

node_scripts.hand_pose_estimation_2d.HandPoseEstimation2D.label_bbox_min

Definition at line 122 of file hand_pose_estimation_2d.py.

◆ label_hand_min

node_scripts.hand_pose_estimation_2d.HandPoseEstimation2D.label_hand_min

Definition at line 123 of file hand_pose_estimation_2d.py.

◆ missing_point

node_scripts.hand_pose_estimation_2d.HandPoseEstimation2D.missing_point

Definition at line 125 of file hand_pose_estimation_2d.py.

◆ model

node_scripts.hand_pose_estimation_2d.HandPoseEstimation2D.model

Definition at line 164 of file hand_pose_estimation_2d.py.

◆ NUMBER_OF_FINGER_JOINT

int node_scripts.hand_pose_estimation_2d.HandPoseEstimation2D.NUMBER_OF_FINGER_JOINT = 3
static

Definition at line 108 of file hand_pose_estimation_2d.py.

◆ NUMBER_OF_FINGERS

int node_scripts.hand_pose_estimation_2d.HandPoseEstimation2D.NUMBER_OF_FINGERS = 5
static

Definition at line 107 of file hand_pose_estimation_2d.py.

◆ skeleton_pub

node_scripts.hand_pose_estimation_2d.HandPoseEstimation2D.skeleton_pub

Definition at line 139 of file hand_pose_estimation_2d.py.

◆ sub_info

node_scripts.hand_pose_estimation_2d.HandPoseEstimation2D.sub_info

Definition at line 206 of file hand_pose_estimation_2d.py.

◆ subs

node_scripts.hand_pose_estimation_2d.HandPoseEstimation2D.subs

Definition at line 196 of file hand_pose_estimation_2d.py.

◆ TRAIN_IMAGE_HEIGHT

node_scripts.hand_pose_estimation_2d.HandPoseEstimation2D.TRAIN_IMAGE_HEIGHT

Definition at line 120 of file hand_pose_estimation_2d.py.

◆ TRAIN_IMAGE_WIDTH

node_scripts.hand_pose_estimation_2d.HandPoseEstimation2D.TRAIN_IMAGE_WIDTH

Definition at line 121 of file hand_pose_estimation_2d.py.

◆ with_depth

node_scripts.hand_pose_estimation_2d.HandPoseEstimation2D.with_depth

Definition at line 135 of file hand_pose_estimation_2d.py.


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


jsk_perception
Author(s): Manabu Saito, Ryohei Ueda
autogenerated on Fri May 16 2025 03:11:18