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

Parameters
----------
image : ndarray or tuple of int
    The new image onto which to project.
    Either an image with shape ``(H,W,[C])`` or a tuple denoting
    such an image shape.

Returns
-------
line_strings : imgaug.augmentables.lines.LineStrings
    Object containing all projected line strings.