def augment_polygons(self, polygons_on_images, parents=None, hooks=None):
from imgaug.augmentables.polys import PolygonsOnImage<EOL>def _subaugment(polygons_on_images_, random_state_, parents_, hooks_):<EOL><INDENT>return self._augment_polygons(<EOL>polygons_on_images_,<EOL>random_state=random_state_,<EOL>parents=parents_,<EOL>hooks=hooks_<EOL>)<EOL><DEDENT>return self._augment_coord_augables(<EOL>cls_expected=PolygonsOnImage,<EOL>subaugment_func=_subaugment,<EOL>augables_ois=polygons_on_images,<EOL>parents=parents,<EOL>hooks=hooks<EOL>)<EOL>
Augment polygons.

This is the corresponding function to ``augment_keypoints()``, just for
polygons.
Usually you will want to call ``augment_images()`` with a list of
images, e.g. ``augment_images([A, B, C])`` and then
``augment_polygons()`` with the corresponding list of polygons on these
images, e.g. ``augment_polygons([A_poly, B_poly, C_poly])``, where
``A_poly`` are the polygons on image ``A``.

Make sure to first convert the augmenter(s) to deterministic states
before augmenting images and their corresponding polygons,
e.g. by

>>> import imgaug as ia
>>> import imgaug.augmenters as iaa
>>> A = B = C = np.ones((10, 10), dtype=np.uint8)
>>> Apoly = Bpoly = Cpoly = ia.PolygonsOnImage(
>>>     [ia.Polygon([(0, 0), (1, 0), (1, 1), (0, 1)])],
>>>     shape=(10, 10))
>>> seq = iaa.Fliplr(0.5)
>>> seq_det = seq.to_deterministic()
>>> imgs_aug = seq_det.augment_images([A, B, C])
>>> polys_aug = seq_det.augment_polygons([Apoly, Bpoly, Cpoly])

Otherwise, different random values will be sampled for the image
and polygon augmentations, resulting in different augmentations
(e.g. images might be rotated by ``30deg`` and polygons by
``-10deg``). Also make sure to call ``to_deterministic()`` again for
each new batch, otherwise you would augment all batches in the same
way.

Parameters
----------
polygons_on_images : imgaug.PolygonsOnImage or \
                     list of imgaug.PolygonsOnImage
    The polygons to augment.
    Expected is an instance of imgaug.PolygonsOnImage or a list of
    imgaug.PolygonsOnImage objects, with each such object
    containing the polygons of a single image.

parents : None or list of imgaug.augmenters.meta.Augmenter, optional
    Parent augmenters that have previously been called before the
    call to this function. Usually you can leave this parameter as None.
    It is set automatically for child augmenters.

hooks : None or imgaug.HooksKeypoints, optional
    HooksKeypoints object to dynamically interfere with the
    augmentation process.

Returns
-------
result : imgaug.PolygonsOnImage or list of imgaug.PolygonsOnImage
    Augmented polygons.