class_docstr: Randomly crop the image's height, either from top or bottom.
  
  Adapted from
  https://github.com/PaddlePaddle/PaddleOCR/blob/release%2F2.6/ppocr/data/imaug/rec_img_aug.py  # noqa
  
  Required Keys:
  
  - img
  
  Modified Keys:
  
  - img
  - img_shape
  
  Args:
      crop_min (int): Minimum pixel(s) to crop. Defaults to 1.
      crop_max (int): Maximum pixel(s) to crop. Defaults to 8.
class_docstr_tok: ["Randomly","crop","the","image","'s","height",",","either","from","top","or","bottom",".","Adapted","from","https",":","\/\/github.com\/PaddlePaddle\/PaddleOCR\/blob\/release","%","2F2.6\/ppocr\/data\/imaug\/rec_img_aug.py","#","noqa","Required","Keys",":","-","img","Modified","Keys",":","-","img","-","img_shape","Args",":","crop_min","(","int",")",":","Minimum","pixel","(","s",")","to","crop",".","Defaults","to","1.","crop_max","(","int",")",":","Maximum","pixel","(","s",")","to","crop",".","Defaults","to","8","."]
docstr: Get all the random values used in this transform.
docstr_tok: ["Get","all","the","random","values","used","in","this","transform","."]
code: def get_random_vars(self):
      """Get all the random values used in this transform."""
      crop_pixels = int(
          random.randint(self.min_pixels, self.max_pixels)
      )
      crop_top = random.randint(0, 1)
      return crop_pixels, crop_top
  
imports: import math
  import random
  from typing import Dict, List, Optional, Tuple
  import cv2
  import mmcv
  import numpy
  from mmcv.transforms.base import BaseTransform
  from mmcv.transforms.utils import cache_randomness
  from mmocr.registry import TRANSFORMS
label_desc: Use image node_id 2 for calling the CropHeight obj's underlying member method code with example usage: obj.get_random_vars() and returns: crop_pixels,  crop_top