add output directory
This commit is contained in:
parent
a2598f5912
commit
04852ce382
2
main.py
2
main.py
|
|
@ -82,7 +82,7 @@ while(cap.isOpened()):
|
||||||
# Format the date and time as a string
|
# Format the date and time as a string
|
||||||
dt_string = now.strftime("%Y-%m-%d_%H-%M-%S")
|
dt_string = now.strftime("%Y-%m-%d_%H-%M-%S")
|
||||||
print(dt_string + " Schreibe mp4 Datei")
|
print(dt_string + " Schreibe mp4 Datei")
|
||||||
out = cv2.VideoWriter("output-" + dt_string + ".mp4", fourcc, fps, frameSize=(width, height))
|
out = cv2.VideoWriter("output/output-" + dt_string + ".mp4", fourcc, fps, frameSize=(width, height))
|
||||||
for frame in bufferedFrames:
|
for frame in bufferedFrames:
|
||||||
out.write(frame)
|
out.write(frame)
|
||||||
out.release()
|
out.release()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue