Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import cv2
- filename = "./images/cube.jpg"
- img = cv2.imread(filename,0)
- sx = cv2.Sobel(img, cv2.CV_64F, 1,0, ksize=3, scale= 1/8)
- cv2.imshow("sx", sx)
- if cv2.waitKey(0) & 0xff == 27:
- cv2.destroyAllWindows()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement