def get_bboxes_in_cropped_area(x, y, w, h, bboxlist):
    """Filter out bounding boxes within the given cropped area."""
    bboxes = []

    for item in bboxlist:
        # if xmin is greater or equal to x, if bbox is inside the crop
        if ((item[0] >= x) and (item[1] >= y) and (item[2] <= (x + w))
                and (item[3] <= (y + h))):
            bboxes.append(item)
        else:
            continue

    return bboxes