
import cv2
import numpy as np
import random

img = cv2.imread('../../Assets/Images/flower-white.jpeg', 1)

imgInfo = img.shape
height = imgInfo[0]
width = imgInfo[1]

cv2.imshow('img', img)

gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)

imgG = cv2.GaussianBlur(gray, (3, 3), 0)
dst = cv2.Canny(img, 50, 50)

cv2.imshow('dst', dst)
cv2.waitKey(0)
[((6, 6, 6, 60), 'cv2.imread', 'cv2.imread', ({(6, 17, 6, 56): '"""../../Assets/Images/flower-white.jpeg"""', (6, 58, 6, 59): '1'}, {}), "('../../Assets/Images/flower-white.jpeg', 1)", False, 'import cv2\n'), ((12, 0, 12, 22), 'cv2.imshow', 'cv2.imshow', ({(12, 11, 12, 16): '"""img"""', (12, 18, 12, 21): 'img'}, {}), "('img', img)", False, 'import cv2\n'), ((14, 7, 14, 44), 'cv2.cvtColor', 'cv2.cvtColor', ({(14, 20, 14, 23): 'img', (14, 25, 14, 43): 'cv2.COLOR_BGR2GRAY'}, {}), '(img, cv2.COLOR_BGR2GRAY)', False, 'import cv2\n'), ((16, 7, 16, 40), 'cv2.GaussianBlur', 'cv2.GaussianBlur', ({(16, 24, 16, 28): 'gray', (16, 30, 16, 36): '(3, 3)', (16, 38, 16, 39): '0'}, {}), '(gray, (3, 3), 0)', False, 'import cv2\n'), ((17, 6, 17, 28), 'cv2.Canny', 'cv2.Canny', ({(17, 16, 17, 19): 'img', (17, 21, 17, 23): '50', (17, 25, 17, 27): '50'}, {}), '(img, 50, 50)', False, 'import cv2\n'), ((19, 0, 19, 22), 'cv2.imshow', 'cv2.imshow', ({(19, 11, 19, 16): '"""dst"""', (19, 18, 19, 21): 'dst'}, {}), "('dst', dst)", False, 'import cv2\n'), ((20, 0, 20, 14), 'cv2.waitKey', 'cv2.waitKey', ({(20, 12, 20, 13): '(0)'}, {}), '(0)', False, 'import cv2\n')]