in utilities/wall projection.py [0:0]
def run(names, locations):
max_length = 0
paths = []
for video_name in names:
path = "examples/{}.mp4".format(video_name)
paths.append(path)
cap = cv2.VideoCapture(path)
length = int(cap.get(cv2.CAP_PROP_FRAME_COUNT))
if length > max_length:
max_length = length
background = Image.open('met projection.jpg')
background = background.resize((w, h), Image.ANTIALIAS)
fig.figimage(background, 0, 0)
print("making animation")
anim = animation.FuncAnimation(fig, updatefig, max_length, fargs=(paths, locations), interval=30)
anim.save('bar.mp4')
print("saved video")