0% found this document useful (0 votes)
52 views

Edge Detection by Python

This Python code uses OpenCV functions to perform edge detection on an image. It loads an eye image, applies the Canny edge detection algorithm with threshold values of 100 and 200, and displays the original and edge-detected images for comparison.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
52 views

Edge Detection by Python

This Python code uses OpenCV functions to perform edge detection on an image. It loads an eye image, applies the Canny edge detection algorithm with threshold values of 100 and 200, and displays the original and edge-detected images for comparison.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

%Edge detection

import cv2

import numpy as np

image = cv2.imread('D:\Medical eletronics\eye.jpg')

cv2.imshow('Original', image)

edges=cv2.Canny(image,100,200)

cv2.imshow('Edges',edges)

You might also like