Advertisement
Guest User

Untitled

a guest
Feb 24th, 2019
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. import cv2
  2.  
  3. filename = "./images/cube.jpg"
  4.  
  5. img = cv2.imread(filename,0)
  6.  
  7. sx = cv2.Sobel(img, cv2.CV_64F, 1,0, ksize=3, scale= 1/8)
  8.  
  9.  
  10. cv2.imshow("sx", sx)
  11.  
  12. if cv2.waitKey(0) & 0xff == 27:
  13. cv2.destroyAllWindows()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement