class_docstr: Apply image augmentors on an image and a list of coordinates.
  Coordinates must be a Nx2 floating point array, each row is (x, y).
docstr: Args:
      ds (DataFlow): input DataFlow.
      augmentors (AugmentorList): a list of :class:`imgaug.ImageAugmentor` to be applied in order.
      img_index (int or str): the index/key of the image component to be augmented.
      coords_index (int or str): the index/key of the coordinate component to be augmented.
      copy, catch_exceptions: same as in :class:`AugmentImageComponent`
docstr_tok: ["Args",":","ds","(","DataFlow",")",":","input","DataFlow",".","augmentors","(","AugmentorList",")",":","a","list","of",":","class",":","`","imgaug.ImageAugmentor","`","to","be","applied","in","order",".","img_index","(","int","or","str",")",":","the","index\/key","of","the","image","component","to","be","augmented",".","coords_index","(","int","or","str",")",":","the","index\/key","of","the","coordinate","component","to","be","augmented",".","copy",",","catch_exceptions",":","same","as","in",":","class",":","`","AugmentImageComponent","`"]
code: def __init__(
      self,
      ds,
      augmentors,
      img_index=0,
      coords_index=1,
      copy=True,
      catch_exceptions=False,
  ):
      """
      Args:
          ds (DataFlow): input DataFlow.
          augmentors (AugmentorList): a list of :class:`imgaug.ImageAugmentor` to be applied in order.
          img_index (int or str): the index/key of the image component to be augmented.
          coords_index (int or str): the index/key of the coordinate component to be augmented.
          copy, catch_exceptions: same as in :class:`AugmentImageComponent`
      """
      if isinstance(augmentors, AugmentorList):
          self.augs = augmentors
      else:
          self.augs = AugmentorList(augmentors)
  
      self._img_index = img_index
      self._coords_index = coords_index
      self._copy = copy
      self._exception_handler = ExceptionHandler(catch_exceptions)
  
      super(AugmentImageCoordinates, self).__init__(
          ds, self._aug_mapper
      )
  
imports: import copy
  import numpy
  from contextlib import contextmanager
  from ..utils import logger
  from ..utils.argtools import shape2d
  from .base import RNGDataFlow
  from .common import MapData, MapDataComponent
label_desc: Use image node_id 1 to create a new AugmentImageCoordinates object from inherited base classes: MapData with example: obj = AugmentImageCoordinates(ds, augmentors, img_index, coords_index, copy, catch_exceptions)