# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3
#     language: python
#     name: python3
# ---

# +
import numpy as np
import cv2
import time
fps_time=0
fourcc = cv2.VideoWriter_fourcc('X','V','I','D')
out = cv2.VideoWriter('./output_videos/output.mp4',fourcc, 10, (1920,1080))

for num in range(1,133):
    frame=cv2.imread("./rgbjpg/%s.jpg"%format(num,"04"))
    out.write(frame)
#Re
out.release()
cv2.destroyAllWindows()
# -



StarcoderdataJupyterScriptsDedupFiltered