16 lines
270 B
Python
16 lines
270 B
Python
import cv2
|
|
import numpy as np
|
|
import glob
|
|
|
|
frameSize = (300, 300)
|
|
|
|
out = cv2.VideoWriter('2__output_video.avi',cv2.VideoWriter_fourcc(*'DIVX'), 30, frameSize)
|
|
|
|
|
|
|
|
for i in range(79):
|
|
img = cv2.imread(f"{i}.jpg")
|
|
print(f"{i}.jpg")
|
|
out.write(img)
|
|
|
|
out.release() |