def on(self, image):
shape = normalize_shape(image)<EOL>if shape[<NUM_LIT:0>:<NUM_LIT:2>] == self.shape[<NUM_LIT:0>:<NUM_LIT:2>]:<EOL><INDENT>return self.deepcopy()<EOL><DEDENT>polygons = [poly.project(self.shape, shape) for poly in self.polygons]<EOL>return PolygonsOnImage(polygons, shape)<EOL>
Project polygons from one image to a new one.

Parameters
----------
image : ndarray or tuple of int
    New image onto which the polygons are to be projected.
    May also simply be that new image's shape tuple.

Returns
-------
imgaug.PolygonsOnImage
    Object containing all projected polygons.