def crop_box ( im , box = False , * * kwargs ) : if box : im = im . crop ( box ) return im
auto crop particular object from image in python
Uses box coordinates to crop an image without resizing it first .
def crop_box(im, box=False, **kwargs):
    """Uses box coordinates to crop an image without resizing it first."""
    if box:
        im = im.crop(box)
    return im