Advertisement
Guest User

Untitled

a guest
Sep 19th, 2019
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. slider = 3
  2. slider_max = 7
  3.  
  4.  
  5. def on_trackbar(pos):
  6.     size = pos
  7.     sigma = pos/3
  8.     img_converted = cv2.GaussianBlur(img, (size, size), sigma)
  9.     cv2.imshow("Trackbar app", img_converted)
  10.     cv2.imwrite("gauss_" + str(pos) + ".jpg", img_converted)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement