Skip to content

Instantly share code, notes, and snippets.

View KittyLiou's full-sized avatar

KittyLiou

View GitHub Profile
@KittyLiou
KittyLiou / edge_detect.py
Created March 31, 2019 14:38
A simple edge detection example
import cv2
import numpy as np
# define vertical and horizontal filters
N = 3
vertical_filter = [[-1,0,1],
[-1,0,1],
[-1,0,1]]
horizontal_filter = [[-1,-1,-1],