Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
from scipy.interpolate import interp1d | |
from skimage import img_as_ubyte | |
def build_spline(x, y): | |
"""computes cubic spline coefficients for a function: (xi=i, yi=f[i]), i=0..n | |
Adapted rom OpenCV project. | |
""" |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
usage example: | |
from scratch.rpunct.rpunct import RestorePuncts | |
rpunct_fixer = RestorePuncts() | |
bot_resp = repunctuate_grammar( | |
original_text, rpunct_obj=rpunct_fixer, verbose=True | |
) | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
slice_video_dir.py - splits all video files in a directory into chunks of a given duration. | |
credit to https://gist.github.com/agalera/8cd63429b06e21d1420c6030c6b45c53 | |
""" | |
import argparse | |
import glob | |
import os | |
from moviepy.video.io.VideoFileClip import VideoFileClip |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.