def crop_np_image(coordinates,img):
    """Copying a crop box portion from image

    Args:
        coordinates ((xmin,ymin,width,height)): coordinates for box
        img (np.ndarray): image
    Returns:
        cropt np image
    """
    xmin,ymin,width,height=coordinates
    return img[ymin:ymin+height,xmin:xmin+width,:]