  
      @staticmethod
      def get_pts_from_predict(batch):
          """ Get points from predictor """
          for prediction, roi in zip(batch["prediction"], batch["roi"]):
              points = np.reshape(prediction, (-1, 2))
              points *= (roi[2] - roi[0])
              points[:, 0] += roi[0]
              points[:, 1] += roi[1]
              batch.setdefault("landmarks", []).append(points)
 
</s> remove             points[:, 0] += roi[0]
            points[:, 1] += roi[1]
 </s> add             points[:, 0] += (roi[0] - offset[0])
            points[:, 1] += (roi[1] - offset[1]) </s> remove         # Shift the box if any points fall below zero
        if left < 0:
            shift_right = abs(left)
            right += shift_right
            left += shift_right
        if top < 0:
            shift_down = abs(top)
            bottom += shift_down
            top += shift_down

 </s> add  </s> remove         faces, batch["roi"] = self.align_image(batch)
 </s> add         faces, batch["roi"], batch["offsets"] = self.align_image(batch)
        for prediction, roi, offset in zip(batch["prediction"], batch["roi"], batch["offsets"]):
  
      @staticmethod
      def get_pts_from_predict(batch):
          """ Get points from predictor """
        for prediction, roi, offset in zip(batch["prediction"], batch["roi"], batch["offsets"]):
              points = np.reshape(prediction, (-1, 2))
              points *= (roi[2] - roi[0])
              points[:, 0] += roi[0]
              points[:, 1] += roi[1]
              batch.setdefault("landmarks", []).append(points)
keep keep keep keep replace keep keep keep keep keep
 bugfix: CV2-DNN aligner. Fix Assertion error when bounding box falls out of frame 
plugins/extract/align/cv2_dnn.py