          focal_length = 4
          camera_matrix = np.array([[focal_length, 0, 0.5],
                                    [0, focal_length, 0.5],
                                    [0, 0, 1]], dtype="double")
          logger.trace("camera_matrix: %s", camera_matrix)
          return camera_matrix
  
      def _solve_pnp(self, landmarks):
          """ Solve the Perspective-n-Point for the given landmarks.
  
 
</s> remove     def _solve_pnp(self, landmarks):
 </s> add     def _solve_pnp(self, landmarks: np.ndarray) -> Tuple[np.ndarray, np.ndarray]: </s> remove     def xyz_2d(self):
 </s> add     def xyz_2d(self) -> np.ndarray: </s> remove             xyz = cv2.projectPoints(np.float32([[6, 0, -2.3], [0, 6, -2.3], [0, 0, 3.7]]),
 </s> add             xyz = cv2.projectPoints(np.array([[6., 0., -2.3],
                                              [0., 6., -2.3],
                                              [0., 0., 3.7]]).astype("float32"), </s> remove                 logger.trace("original roi: %s", roi)
                self._cache["original_roi"][0] = roi
        return self._cache["original_roi"][0]
 </s> add                 logger.trace("original roi: %s", roi)  # type: ignore
                self._cache.original_roi = roi
        return self._cache.original_roi[0] </s> remove         with self._cache["original_roi"][1]:
            if self._cache["original_roi"][0] is None:
 </s> add         with self._cache.lock("original_roi"):
            if self._cache.original_roi is None:
        logger.trace("camera_matrix: %s", camera_matrix)  # type: ignore
          focal_length = 4
          camera_matrix = np.array([[focal_length, 0, 0.5],
                                    [0, focal_length, 0.5],
                                    [0, 0, 1]], dtype="double")
        logger.trace("camera_matrix: %s", camera_matrix)  # type: ignore
          return camera_matrix
  
      def _solve_pnp(self, landmarks):
          """ Solve the Perspective-n-Point for the given landmarks.
  
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