Skip to content

Instantly share code, notes, and snippets.

Avatar

KittyLiou

View GitHub Profile
@KittyLiou
KittyLiou / edge_detect.py
Created Mar 31, 2019
A simple edge detection example
View edge_detect.py
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],