Skip to content
Browse files

refactor(preprocessor): add init, change signiture

  • Loading branch information...
jemmyshin committed Aug 26, 2019
1 parent 293d80e commit 7493af9779093742d0e9fd16df6681366666539c
@@ -135,7 +135,7 @@ def split_video_frames(buffer_data: bytes,
return [np.array( for chunk in chunks]

def get_gif(images, fps=4):
def get_gif(images: 'np.ndarray', fps=10):
cmd = ['ffmpeg', '-y',
'-f', 'rawvideo',
'-vcodec', 'rawvideo',
No changes.
@@ -47,7 +47,7 @@ def decode_gif(data: bytes, fps: int = -1,

def encode_gif(
images: List[np.ndarray],
images: np.ndarray,
scale: str,
fps: int,
pix_fmt: str = 'rgb24'):

0 comments on commit 7493af9

Please sign in to comment.
You can’t perform that action at this time.