guardiancc commited on
Commit
af18b22
·
verified ·
1 Parent(s): c5b4561

Update engine.py

Browse files
Files changed (1) hide show
  1. engine.py +1 -1
engine.py CHANGED
@@ -90,6 +90,7 @@ class Engine:
90
  cap = cv2.VideoCapture(video)
91
  video_writer = None
92
  frames = []
 
93
 
94
  while True:
95
  ret, frame = cap.read()
@@ -99,7 +100,6 @@ class Engine:
99
 
100
  if video_writer is None:
101
  height, width, _ = frame.shape
102
- output_file = "output_video.mp4"
103
  fourcc = cv2.VideoWriter_fourcc(*'mp4v')
104
  video_writer = cv2.VideoWriter(output_file, fourcc, 24.0, (width, height))
105
 
 
90
  cap = cv2.VideoCapture(video)
91
  video_writer = None
92
  frames = []
93
+ output_file = "output_video.mp4"
94
 
95
  while True:
96
  ret, frame = cap.read()
 
100
 
101
  if video_writer is None:
102
  height, width, _ = frame.shape
 
103
  fourcc = cv2.VideoWriter_fourcc(*'mp4v')
104
  video_writer = cv2.VideoWriter(output_file, fourcc, 24.0, (width, height))
105