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>bounding_boxes = [bb.project(self.shape, shape)<EOL>for bb in self.bounding_boxes]<EOL>return BoundingBoxesOnImage(bounding_boxes, shape)<EOL>
Project bounding boxes from one image to a new one.

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

Returns
-------
bounding_boxes : imgaug.BoundingBoxesOnImage
    Object containing all projected bounding boxes.