Skip to content

Commit

Permalink
fixed video writer
Browse files Browse the repository at this point in the history
  • Loading branch information
Schuman Zhang committed Jul 9, 2018
1 parent 7bc3ca8 commit 6184b8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions video_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ def __init__(self, path, size):
self.path = path
self.size = size
self.writer = cv2.VideoWriter(self.path,
cv2.VideoWriter_fourcc('M','J','P','G'),
cv2.VideoWriter_fourcc('F','M','P','4'),
20.0, self.size, True)

def __call__(self, frame):
self.writer.write(frame)

def close():
def close(self):
self.writer.release()


Expand Down

0 comments on commit 6184b8f

Please sign in to comment.