opencv 卷积神经网络

import numpy as np
import cv2
from scipy import ndimage

k33=np.array([[-1,-1,-1],
              [-1,8,-1],
              [-1,-1,-1]])
k33d=np.array([[1,1,1],
              [1,-8,1],
              [1,1,1]])
img=cv2.imread('psu.jpeg',0)
lg=ndimage.convolve(img,k33)

cv2.imshow('test',lg)
cv2.waitKey()

opencv 卷积神经网络_第1张图片

opencv 卷积神经网络_第2张图片

你可能感兴趣的:(opencv)