                                                  points,
                                                  self._camera_matrix,
                                                  self._distortion_coefficients,
                                                  flags=cv2.SOLVEPNP_ITERATIVE)
          logger.trace("points: %s, rotation: %s, translation: %s", points, rotation, translation)
          return rotation, translation
  
      def _get_offset(self):
          """ Obtain the offset between the original center of the extracted face to the new center
          of the head in 2D space.
 
</s> remove     def _get_offset(self):
 </s> add     def _get_offset(self) -> Dict[CenteringType, np.ndarray]: </s> remove     def offset(self):
 </s> add     def offset(self) -> Dict[CenteringType, np.ndarray]: </s> remove     def _solve_pnp(self, landmarks):
 </s> add     def _solve_pnp(self, landmarks: np.ndarray) -> Tuple[np.ndarray, np.ndarray]: </s> remove         with self._cache["cropped_roi"][1]:
            if centering not in self._cache["cropped_roi"][0]:
                offset = self.pose.offset.get(centering, np.float32((0, 0)))  # legacy = 0.0
                adjusted = offset - self.pose.offset["head"]
                adjusted *= (self._head_size - (self._head_size * _EXTRACT_RATIOS["head"]))

                center = np.rint(adjusted + self._head_size / 2).astype("int32")
                padding = self.size // 2
 </s> add         with self._cache.lock("cropped_roi"):
            if centering not in self._cache.cropped_roi:
                center = get_adjusted_center(image_size,
                                             self.pose.offset[self._source_centering],
                                             self.pose.offset[self.centering],
                                             self._source_centering)
                padding = target_size // 2
        logger.trace("points: %s, rotation: %s, translation: %s",  # type: ignore
                     points, rotation, translation)
                                                  points,
                                                  self._camera_matrix,
                                                  self._distortion_coefficients,
                                                  flags=cv2.SOLVEPNP_ITERATIVE)
        logger.trace("points: %s, rotation: %s, translation: %s",  # type: ignore
                     points, rotation, translation)
          return rotation, translation
  
      def _get_offset(self):
          """ Obtain the offset between the original center of the extracted face to the new center
          of the head in 2D space.
keep keep keep keep replace keep keep keep keep keep
 lib.align.aligned_face updates
  - Typing
  - Legacy support for pre-aligned faces
  - Coverage support for pre-aligned faces
  - Standardized retrieval of sub-crops 
lib/align/aligned_face.py