class_docstr: Random crop and flip a patch in the image. Only used in text detection
  task.
  
  Required Keys:
  
  - img
  - gt_bboxes
  - gt_polygons
  
  Modified Keys:
  
  - img
  - gt_bboxes
  - gt_polygons
  
  Args:
      pad_ratio (float): The ratio of padding. Defaults to 0.1.
      crop_ratio (float): The ratio of cropping. Defaults to 0.5.
      iter_num (int): Number of operations. Defaults to 1.
      min_area_ratio (float): Minimal area ratio between cropped patch
          and original image. Defaults to 0.2.
      epsilon (float): The threshold of polygon IoU between cropped area
          and polygon, which is used to avoid cropping text instances.
          Defaults to 0.01.
docstr: Applying random crop flip on results.
  
  Args:
      results (dict): Result dict containing the data to transform
  
  Returns:
      dict: The transformed data
docstr_tok: ["Applying","random","crop","flip","on","results",".","Args",":","results","(","dict",")",":","Result","dict","containing","the","data","to","transform","Returns",":","dict",":","The","transformed","data"]
code: def transform(self, results: Dict) -> Dict:
      """Applying random crop flip on results.
  
      Args:
          results (dict): Result dict containing the data to transform
  
      Returns:
          dict: The transformed data
      """
      assert "img" in results, "`img` is not found in results"
      for _ in range(self.iter_num):
          results = self._random_crop_flip_polygons(results)
      bboxes = [poly2bbox(poly) for poly in results["gt_polygons"]]
      results["gt_bboxes"] = np.array(bboxes, dtype=np.float32).reshape(
          -1, 4
      )
      return results
  
imports: import math
  import random
  from typing import Dict, List, Sequence, Tuple, Union
  import cv2
  import mmcv
  import numpy
  from mmcv.transforms import RandomFlip
  from mmcv.transforms.base import BaseTransform
  from mmcv.transforms.utils import avoid_cache_randomness, cache_randomness
  from shapely.geometry import Polygon
  from mmocr.registry import TRANSFORMS
  from mmocr.utils import crop_polygon, poly2bbox, poly_intersection
label_desc: Use image node_id 5 for calling the TextDetRandomCropFlip obj's underlying member method code with example usage: obj.transform(results) and returns: results