def apply_coords(self, coords):
        """
        coords should be a N * 2 array-like, containing N couples of (x, y) points
        """
        coords = np.asarray(coords, dtype=float)
        if len(coords) == 0 or self.angle % 360 == 0:
            return coords
        return cv2.transform(coords[:, np.newaxis, :], self.rm_coords)[:, 0, :]

        coords should be a N * 2 array-like, containing N couples of (x, y) points
        
video_chat_with_MOSS/models/grit_src/third_party/CenterNet2/detectron2/data/transforms/transform.py