class_docstr: Random padding augmenter.
  
  Parameters
  ----------
  aspect_ratio_range : tuple of floats, default=(0.75, 1.33)
      The padded area of the image must have an aspect ratio = width / height
      within this range.
  area_range : tuple of floats, default=(1.0, 3.0)
      The padded area of the image must be larger than the original area
  max_attempts : int, default=50
      Number of attempts at generating a padded region of the image of the
      specified constraints. After max_attempts failures, return the original image.
  pad_val: float or tuple of float, default=(128, 128, 128)
      pixel value to be filled when padding is enabled.
class_docstr_tok: ["Random","padding","augmenter",".","Parameters","--","--","--","--","--","aspect_ratio_range",":","tuple","of","floats",",","default=","(","0.75",",","1.33",")","The","padded","area","of","the","image","must","have","an","aspect","ratio","=","width","\/","height","within","this","range",".","area_range",":","tuple","of","floats",",","default=","(","1.0",",","3.0",")","The","padded","area","of","the","image","must","be","larger","than","the","original","area","max_attempts",":","int",",","default=50","Number","of","attempts","at","generating","a","padded","region","of","the","image","of","the","specified","constraints",".","After","max_attempts","failures",",","return","the","original","image",".","pad_val",":","float","or","tuple","of","float",",","default=","(","128",",","128",",","128",")","pixel","value","to","be","filled","when","padding","is","enabled","."]
docstr: Augmenter body
docstr_tok: ["Augmenter","body"]
code: def __call__(self, src, label):
      """Augmenter body"""
      height, width, _ = src.shape
      pad = self._random_pad_proposal(label, height, width)
      if pad:
          x, y, w, h, label = pad
          src = copyMakeBorder(
              src,
              y,
              h - y - height,
              x,
              w - x - width,
              16,
              values=self.pad_val,
          )
      return (src, label)
  
imports: import json
  import logging
  import random
  import warnings
  import numpy
  from ..base import numeric_types
  from ..None import ndarray
  from ..ndarray._internal import _cvcopyMakeBorder
  from ..None import io
  from .image import RandomOrderAug, ColorJitterAug, LightingAug, ColorNormalizeAug
  from .image import ResizeAug, ForceResizeAug, CastAug, HueJitterAug, RandomGrayAug
  from .image import fixed_crop, ImageIter, Augmenter
  from ..util import is_np_array
  from ..None import numpy
label_desc: Use image node_id 2 for calling the DetRandomPadAug obj's underlying member method code with example usage: obj.__call__(src, label) and returns: src,  label