Skip to content

Instantly share code, notes, and snippets.

View actual-kwarter's full-sized avatar

Matthew Johnston actual-kwarter

  • South Carolina, USA
View GitHub Profile
@nuumio
nuumio / 99-marvell.rules
Created December 29, 2020 09:12
udev rule for Marvell 88SE9230 on RockPro64
ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x1b4b", ATTR{device}=="0x9230", RUN+="/bin/bash -c 'echo %k > /sys/bus/pci/drivers/ahci/bind'"
#!/usr/bin/env python
import numpy as np
import cv2
from scipy.signal import convolve2d
from skimage import color, data, restoration
import console
# read input
frame = cv2.imread("input.jpg").astype(np.float32) / 255.0