This file contains hidden or 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/env python | |
| import sys | |
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| import wave | |
| import scipy.signal as signal | |
| def downsampling(conversion_rate, data, fr) : | |
| decimation_sampleNum = conversion_rate-1 | |
| nyqF = (fr/conversion_rate)/2.0 |
This file contains hidden or 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/env python | |
| import sys | |
| import os | |
| import shutil | |
| import math | |
| import matplotlib.pyplot as plt | |
| import cv2 | |
| import numpy as np |
This file contains hidden or 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/env python | |
| # -*- coding: utf-8 -*- | |
| import matplotlib.pyplot as plt | |
| import datetime | |
| import numpy as np | |
| plt.rcParams['font.family'] = 'sans-serif' | |
| plt.rcParams['font.sans-serif'] = ['IPAPGothic', 'VL PGothic'] | |
| dt0 = datetime.date(1977,1,1) |
This file contains hidden or 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/env python | |
| import sys | |
| import os | |
| import shutil | |
| import math | |
| import matplotlib.pyplot as plt | |
| import cv2 | |
| import numpy as np |
This file contains hidden or 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/env python | |
| import sys | |
| import os | |
| import shutil | |
| import matplotlib.pyplot as plt | |
| import cv2 | |
| import numpy as np | |
| def color_cluster(src_img, DEBUG): |
This file contains hidden or 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 sys | |
| import numpy as np | |
| import cv2 | |
| def dilate(src, ksize=3): | |
| h, w = src.shape | |
| dst = src.copy() | |
| d = int((ksize-1)/2) | |
| for y in range(0, h): |
This file contains hidden or 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 MeCab | |
| import sys | |
| import re | |
| import collections | |
| cmd, infile = sys.argv | |
| with open(infile) as f: | |
| text = f.read() | |
| f.close() |
This file contains hidden or 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
| #!/bin/sh | |
| INPUT="input.mkv" | |
| OUTPUT="output.mp4" | |
| START="hh:mm:ss" | |
| END="hh:mm:ss" | |
| ffmpeg -y -ss $START -to $END-i $INPUT -map 0:3 $OUTPUT | |
| ffmpeg -y -i $OUTPUT -filter_complex "channelsplit=channel_layout=5.1[FL][FR][FC][LFE][BL][BR]" -map "[FL]" front_left.wav -map "[FR]" front_right.wav -map "[FC]" front_center.wav -map "[LFE]" lfe.wav -map "[BL]" back_left.wav -map "[BR]" back_right.wav |
NewerOlder