import cv2
import numpy as np
print("Read images, videos & Webcam")

img = cv2.imread("Resources/lena.png")
kernel = np.ones((5,5), np.uint8)

imgGray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)      #convert image to grayscale
imgBlur = cv2.GaussianBlur(imgGray, (7,7),0)
imgCanny = cv2.Canny(img,100,100)       #show edges of image
imgDialation = cv2.dilate(imgCanny,kernel, iterations=1)                #increase thickness of edge
imgEroded = cv2.erode(imgDialation,kernel,iterations=1)

# cv2.imshow("Gray Image", imgGray)
# cv2.imshow("Blur Image", imgBlur)
# cv2.imshow("Canny Image", imgCanny)
cv2.imshow("Dialation Image", imgDialation)
cv2.imshow("Eroded Image", imgEroded)
cv2.waitKey(0)