def buildslidingwindows(base, space, skip):
    nextframe = base.frame
    w = base.get_width()
    h = base.get_height()
    xstart = space[0], ystart = space[1]
    xstop = space[2] - w
    ystop = space[3] - h
    boxes = []
    for i in range(xstart, xstop, skip):
        for j in range(ystart, ystop, skip):
            boxes.append(annotations.Box(i, j, i + w, j + h, nextframe))
    return boxes
Generate sliding windows based off the image that are displaced and resized.
dataset/ETHPy150Open cvondrick/pyvision/vision/track/util.py/buildslidingwindows