Advertisement
Guest User

Untitled

a guest
Apr 21st, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. elif key == ord('p'):
  2. mask = gauss
  3. mask = cv2.scaleAdd(mask, 1/16.0, np.zeros([3, 3], dtype = np.float32))
  4. imageFloat32 = np.array(gray_image, dtype=np.float32)
  5. imageFloat32 = cv2.filter2D(imageFloat32, -1, mask, anchor = (1, 1))
  6.  
  7. mask = laplacian
  8. else:
  9. pass
  10. # camera.release()
  11. cv2.destroyAllWindows()
  12.  
  13.  
  14. if __name__ == '__main__':
  15. main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement