(self, frame)
return xyz, theta
Process a single frame.

    Parameters
    ----------
    frame : np.ndarray, shape [128, 128, 3], dtype np.uint8.
      Frame to be processed.

    Returns
    -------
    np.ndarray, shape [21, 3]
      Joint locations.
    np.ndarray, shape [21, 4]
      Joint rotations.
Process a single frame.
Process a single frame .
def process(self, frame):
    """
    Process a single frame.

    Parameters
    ----------
    frame : np.ndarray, shape [128, 128, 3], dtype np.uint8.
      Frame to be processed.

    Returns
    -------
    np.ndarray, shape [21, 3]
      Joint locations.
    np.ndarray, shape [21, 4]
      Joint rotations.
    """
    xyz, _ = self.det_model.process(frame)
    delta, length = xyz_to_delta(xyz, MPIIHandJoints)
    delta *= length
    pack = np.concatenate(
      [xyz, delta, self.mpii_ref_xyz, self.mpii_ref_delta], 0
    )
    theta = self.ik_model.process(pack)

    return xyz, theta
def process ( self , frame ) : xyz , _ = self . det_model . process ( frame ) delta , length = xyz_to_delta ( xyz , MPIIHandJoints ) delta *= length pack = np . concatenate ( [ xyz , delta , self . mpii_ref_xyz , self . mpii_ref_delta ] , 0 ) theta = self . ik_model . process ( pack ) return xyz , theta