code: def is_poly_outside_rect(self, poly, x, y, w, h):
      poly = np.array(poly)
      if poly[:, 0].max() < x or poly[:, 0].min() > x + w:
          return True
      if poly[:, 1].max() < y or poly[:, 1].min() > y + h:
          return True
      return False
  
file_path: PaddleOCR/benchmark/PaddleOCR_DBNet/data_loader/modules/random_crop_data.py
imports: import random
  import cv2
  import numpy
label_desc: Use image node_id 4 for calling the EastRandomCropData obj's underlying member method code with example usage: obj.is_poly_outside_rect(poly, x, y, w, h) and returns: False, True, True