Exercise: Detect Edges of an Electronic Board
Explore how to apply Sobel edge detection in both horizontal and vertical directions, threshold and thin edges, then locate key features using the Hough Line detection method. This lesson helps you programmatically detect and annotate inspection zones on electronic boards, reinforcing practical skills in automated feature detection with computer vision.
We'll cover the following...
Problem statement
We want to inspect the two rows of small solder cones highlighted by the blue rectangle in the image below.
We know the distance between the northwest golden fiducial and the left border of the white rectangle around the zone to inspect. In a previous exercise, we located the three golden fiducials, so we have a good approximation of the zone to inspect. Your task is to precisely locate the four white segments i.e., the long white rectangle inside the annotated blue rectangle in the image below that delimitates our zone to inspect.
Launch the Jupyter Notebook below and follow the instructions.
Instructions:
Comments that start with
# >>>indicate that you must edit the cell.Replace the
Nonevalues with the appropriate function calls.
The main steps that you’ll have to complete are: ...