Skip to content

Instantly share code, notes, and snippets.

Robert F Merrill rfmerrill

Block or report user

Report or block rfmerrill

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View noise.py
#!/usr/bin/env python
import numpy as np
import os
import cv2
kernel = np.ones((6,6), np.float32)/36.0
while True:
#img = noisy(sys.argv[1], seed)
img = np.random.normal(192, 5, (400,400,1))
cv2.imshow("Noise", np.uint8(img))
View trigger_ft.py
#!/usr/bin/env python
import MySQLdb
import sys
import os
import time
db_connect_args = {
# 'host': '127.0.0.1',
# 'user': 'root',
'host': '10.2.10.10',
View scope.py
#!/usr/bin/env python
import numpy as np
import cv2
import sys
import scipy.io.wavfile
import scipy.signal
# Needs to be a regular wav file, not wavex
# Also, assuming PCM, 2 channels, 16-bit
fs, data = scipy.io.wavfile.read(sys.argv[1], 'rb')
You can’t perform that action at this time.