Skip to content
UPEEC

Digital Image Processing

Operate on pixels: filtering, thresholding, edges, morphology and colour spaces.

Easy
Comments 0
import cv2
img = cv2.imread("pcb.jpg")
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
edges = cv2.Canny(cv2.GaussianBlur(gray, (5, 5), 0), 50, 150)

Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.

Discussion (0)

Sign in or join free to ask questions and discuss this topic.