Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. import cv2
  2. import numpy as np
  3. imageSource = 'q4.jpg'
  4. img = cv2.imread(imageSource,cv2.COLOR_BGR2GRAY)
  5. cv2.imshow( "original", img )
  6. result = img & X
  7. cv2.imshow( "out", result )
  8. cv2.imwrite('out.jpg',result)
  9. cv2.waitKey(0)
  10. cv2.destroyAllWindows()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement