def check_box(box,img_wh):
    """ Test whether a box is within image size.

    Parameters
    ----------
    box : list
        A list of [x,y,width,height] where x,y in the top-left 
        point coordinates 

    Returns
    -------
    bool
        A boolean indicating whether the box inside the image 
        dimensions or not.

    """
    return (box[0]>=0)*(box[1]>=0)*((box[0]+box[2])<img_wh[0])*((box[1]+box[3])<img_wh[1])*(box[2]>=0)*(box[3]>=0)