smoothed = cv.GaussianBlur(gray, (5, 5), 0) edges = cv.Canny(smoothed, 80, 160)