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
#!/usr/bin/expect | |
mkdir ~/bin | |
cd ~/bin | |
wget https://gist.githubusercontent.com/groakat/ae74323933678c6ad04a/raw/1b871efcec60dc739a8c61f2a504d52ce4033dd3/gst-head | |
chmod +x gst-head | |
mkdir -p ~/src/gstreamer1/head | |
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
dummy file |
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 os | |
import glob | |
import dlib | |
import numpy as np | |
import pyTools.system.videoExplorer as VE | |
import pyTools.videoProc.annotation as A |
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 scipy.io.wavfile | |
import pandas as pd | |
sound = scipy.io.wavfile.read('../data/day.wav') | |
pd.DataFrame(sound[1]).to_csv('../data/wav.csv', index=False, header=False) |
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
# The script MUST contain a function named azureml_main | |
# which is the entry point for this module. | |
# | |
# The entry point function can contain up to two input arguments: | |
# Param<dataframe1>: a pandas.DataFrame | |
# Param<dataframe2>: a pandas.DataFrame | |
def azureml_main(dataframe1 = None, dataframe2 = None): | |
from scipy.fftpack import fft |
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
def SpecGen(self, filepath): | |
""" | |
Code to generate spectrogram adapted from code posted on https://mail.python.org/pipermail/chicago/2010-December/007314.html by Ken Schutte (kenshutte@gmail.com) | |
""" | |
sr, x = scipy.io.wavfile.read(filepath) | |
## Parameters | |
nstep = int(sr * self.specNStepMod) | |
nwin = int(sr * self.specNWinMod) |
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.
OlderNewer