3D AOI IC Algorithm Guide
3D AOI IC Algorithm Guide
明锐理想科技
MagicRay Technology
02 Height Setting
03 IC Pin Setting
CONTENT
04 IC Pin Searching
05 Pad Searching
06 Component Inspection
08 Solder Inspection
2
Searching Window
3
Searching Window
Size and Orientation of Body Window
Size of IC Searching Size of IC Searching Window: Slightly larger than the size
Window larger than
enough to cover all Orientation of IC
enough to cover all the IC pins (with some overlapping region
pins, with some Searching Window with the IC Body)
overlapping region points outward of
with IC body component
Size of Pin Sampling Window: Follow actual size of IC pin in
image
Size of Pin Sampling
Window follow its
actual size in image
Orientation of Solder Pad Window: Should always pointing
out from the component 4
01 Searching Window
02 Height Setting
03 IC Pin Setting
CONTENT
04 IC Pin Searching
05 Pad Searching
06 Component Inspection
08 Solder Inspection
5
Height Setting
Height Setting
Height
Definition of Height = distance from PCB surface to the
top of the object (component body / pin outer region)
6
01 Searching Window
02 Height Setting
03 IC Pin Setting
CONTENT
04 IC Pin Searching
05 Pad Searching
06 Component Inspection
08 Solder Inspection
7
IC Pin Setting
IC Pin Pitch and Quantity
Function of the IC searching window is to correct the positions
of the pad and the component, mainly to correspond to the
deviation caused by local deformation of PCB. The deviation is
automatically corrected after aligning with the pad
02 Height Setting
03 IC Pin Setting
CONTENT
04 IC Pin Searching
05 Pad Searching
06 Component Inspection
08 Solder Inspection
9
IC Pin Searching
Pin Vertical Position Searching – Component Edge Searching (3D)
100%
70% Component
Search Height
Height
Figure 2
10
IC Pin Searching
Pin Vertical Position Searching – Component Edge Searching (2D)
11
IC Pin Searching
Pin Vertical Position Searching – Pin Inner Side Searching (2D)
1. Extract the colour (usually red) and brightness of the inner end of
the pin
2. Taking the pin window horizontal length*number of pins as 100%,
search the inner end of the pin in the IC searching window. Using
the retrieved inner end as the starting position of the pin and move
all generated pins vertically so that the inner end of all the pin
windows is at the actual inner end of the pins in image
i. Each Row Qualified Ratio: Each row detected with the colour
Hor. of inner end must be more than the defined % to fulfil
ii. Continuous Qualified Length: Define the minimum number
Ver. of consecutive rows (in pixel) must fulfil the set value in ‘Each
Row Qualified Ratio’
1. Extract the colour (red, blue) and brightness of the pin / colour
of the outer end of the pin (red)
2. If the ‘Pin External Part Searching’ is checked, the horizontal
position search will be based on the pin outer end. If not
checked, the entire pin will be used for horizontal positioning by
default.
Ver.
13
IC Pin Searching
Pin Outer End Searching (3D)
Figure 1
80% pin outer
end height
cross section
100% Width 14
IC Pin Searching
Pin Outer End Searching (2D)
ii. Each Row Qualified Ratio: Extract the red color of the pin end
Hor. and its brightness. If the set value is met, the pin window
③ automatically extends to the location and that is seen as the
real outer end of the pin.
Ver.
15
01 Searching Window
02 Height Setting
03 IC Pin Setting
CONTENT
04 IC Pin Searching
05 Pad Searching
06 Component Inspection
08 Solder Inspection
16
Pad Searching
Pad Searching (2D)
17
01 Searching Window
02 Height Setting
03 IC Pin Setting
CONTENT
04 IC Pin Searching
05 Pad Searching
06 Component Inspection
08 Solder Inspection
18
Component Inspection Vertical and Horizontal Shifting
Target Value Actual Value
Calculate the distance between the outer end of pin to the outer
end of the pad. If the length is greater than the set value then it is
Distance between the outer OK. If it is less than the set value, it will be reported as NG vertical
end of pin to outer end of pad
offset error
Set Value: Range between one-third or half of the actual test value
40~60
40~60
20
Component Inspection
Polarity Window (2D)
1. Create Polarity Windows and place on the component polarity
identification area
2. Extract the color for polarity recognition, usually white/black
3. Color ratio setting steps:
i. Place the polarity window in the polarity identification
area. Note down the actual measured value
Wrong Direction
iv. During inspection, if the detected color ratio in the polarity
window reaches the set value, then OK. Otherwise, it will
reports NG ‘wrong direction’
21
Component Inspection
Bridge Window
Bridge Window
Sign window needs
OCV Sign Window algorithm explanation:
Bridge Window OCR Sign Window algorithm explanation: to be drawn larger
1. Create sign window. Size needs to be drawn larger 1. OCR recognize the characters by their outline. It can than body window
than body window. Direction set to be same as the differentiate characters such as 0 and O.
wordings 2. OCR can be used independently, tick on ‘OCR’ to use
2. Click login to save template 3. Click ‘Learn’ to automatically detect the characters
3. Adjust the red box to frame over the characters to be inside the sign window
read 4. Click ‘+’ to add several more target characters.
4. If needed, select theWindow
Bridge colour ‘Channel’ and adjust the Maximum target allowed is 5
‘Max’ section to bring out clear display of the 5. Tick ‘Reverse Allowed’ if the character has no polarity
characters (usually used for chip components)
5. Tick on ‘Reverse Allowed’ if the component has no
polarity Note: If both OCV and OCR are activated, ‘OCR’ will only
6. ‘New OCV’ is a stricter algorithm of OCV. It is able to be used after ‘OCV’ fails. If OCV NG but OCR OK, the result
differentiate characters such as 8 and B. ‘Identity’ is is OK (‘OR’ relationship)
usually set to 65% 22
Component Inspection
Bridge Window (2D)
80% Distance
between Pads
1. When the ‘Bridge Inspection’ is checked, bridge window will be
automatically generated between two pins.
i. Inner Excluded Area: Refers to the set pixel length from the inner
end of the pin to be excluded from the bridging detection area
ii. Outer Excluded Area: Refers to the set pixel length from the outer
0% Inner
0% Outer Excluded Area
end of the pad to be excluded from the bridging detection area
Excluded iii. Horizontal Width: Percentage ratio of the width of the bridge
Area 100% Distance window to the distance between the two pads
between Pads iv. Outer Edge Searching From Beginning Side: Tick if you wish to put
a bridge window before the first pin
Hor. v. Outer Edge Searching Till Ending: Tick if you wish to put a bridge
window after the last pin
Ver. Outer Edge Searching Till
Ending Side 2. Extract the color (R, G, B) and its brightness for solder bridging detection
3. If the detected color penetrates through the bridging window, it will be a
NG call ‘Short Circuit’ error 23
Component Inspection
Pin Bending Detection (2D)
24
Component Inspection Planeness Window (3D)
Vertical Directional
Bridge Window
Parallel Directional
Planeness Window
Function of planeness window is to check the height difference of the
component within the window
Bridge Window
i. Inspection Area: Define the size of the inspection area, taking size
Bridge Window of the planeness window as 100%
ii. Area Height Difference: Maximum height difference detected
within the inspection area must be less or more than the set value
iii. Reported Error Type: Select the error type to display if NG occurs
iv. Object Following: Positioning method for the window 25
Component Inspection Height Window (3D)
Bridge Window
Inspection area
Height Window
Bridge Window
02 Height Setting
03 IC Pin Setting
CONTENT
04 IC Pin Searching
05 Pad Searching
06 Component Inspection
08 Solder Inspection
27
IC Inner and Outer Part Setting
IC Pin Inner and Outer Part Settings
28
01 Searching Window
02 Height Setting
03 IC Pin Setting
CONTENT
04 IC Pin Searching
05 Pad Searching
06 Component Inspection
08 Solder Inspection
29
Solder Inspection Fillet (2D)
Normal
30
Solder Inspection Fillet (2D) – Side Fillet
Recommended Color:
31
Color Item 0: R 0~33
Solder Inspection Open Solder : 1. Pin Warp (3D)
Figure 1
Inspection Area i. Pin Outer Remove: As shown in Figure 1, take the pin width as 100% width, and
remove 10% set value from each side, leaving the remaining green area in the
middle as the inspection area.
10% Pin Outer
ii. Pin Outer Height ≤: As shown in Figure 2, take the set value of the pin outer
Remove height (at height setting) as the standard pin height. Conduct height detection
100% Width for each pin, and if the height of any one pin is ≥ standard height + 150um set
value, it will be marked as NG.
iii. Pin Outer Height: As shown in Figure 2, conduct height testing for all pins, and if
Figure 2
the difference between the highest and lowest heights is ≤ 100um set value, it
will be OK; otherwise, it will be marked as NG.
Inspection Area
Vertical
Excluded Length Length
i. Excluded Length: Starting from the end of pin, the ignored length = 3
Open pixels set value.
Solder ii. Vertical Length: Setting for the length of the inspection area, as
shown in the diagram, the length of the rectangle = 10 pixels set
value.
iii. Horizontal Width: Taking the solder pad width as 100%, the width of
the rectangular inspection area = 40% set value.
iv. Each Row Qualified Ratio: Within the generated rectangular
inspection window, scan in vertical direction row by row. The
Open Horizontal Width proportion of red in each row should less than 50% to fulfil
Solder (pin width = 100%) v. Continuous Qualified Length: Number of consecutive rows fulfilling
Hor. within the inspection area should be less than ≤ 5 pixels set value,
Inspection Area then it's marked as OK; otherwise, it's marked as NG.
Vertical
Excluded Length
Ver. Length Recommended Color:
Color Item 0: R 35~100 ,W 50~255 33
Solder Inspection Open Solder : 2. Pin Extension (3D)
Vertical Length
Normal
(pad width = 100%)
Inspection Area
Parallel
Length
i. Parallel Length: Setting for the length of the inspection area, as
shown in the diagram, the length of the rectangle = 20 pixels set
value.
Open
ii. Vertical Length: Taking the solder pad width as 100%, the width of
Solder
the rectangular inspection area = 30% set value.
iii. Height: Taking the set pin outer height (in height setting) as 100%,
define the inspection height within the inspection area. If object
exceeding height defined in the inspection area, it will appear
green, showing that pin is extended
iv. Pin Stretch Width: Within the generated rectangular inspection
window, scan in vertical direction row by row. The proportion of
Open Vertical Length green pixel in each row should less than 60% to fulfil
Solder (pin width = 100%)
v. Stretch Length: Number of consecutive rows fulfilling within the
Hor. inspection area should be less than ≤ 10 pixels set value, then it's
Inspection Area
Parallel marked as OK; otherwise, it's marked as NG.
Ver. Length
34
Solder Inspection Open Solder : 3. Solder Outer Edge (2D) – Entire Pad Tip
Normal
Recommended Color:
Color Item 0: B 33~100,W 50~255
Normal
2. Then it compares the detected solder outer edge (X% actual test
value) with the 70% position set to be the solder outer edge (when
Open open solder does not occur). If the found solder outer end is within
Solder the position, it is considered as not open soldered. Otherwise, it is
Hor. considered as open solder.
Pad Vertical Length = 100%
Ver. 70% Position 3. At same time, from the X% actual test value border, it will search
Distance between Actual Test Color
inwards by the 20% inspection area defined. The color ratio within
20% Inspection Area the inspection area must be less than 40% to be OK
Border Line to pin edge X% (search inwards 20% from the
(Search inwards from outer end of pad) X% Actual Test) 36
Note: Relationship between Dome Tip and Tip Area test result is ‘OR’
Solder Inspection
Open Solder : 4. Pin Tip (2D)
37
Solder Inspection Open Solder : 5. Pin Side (2D)
Normal
Recommended Color:
Open Color Item 0: R 33~100, W 50~255
Solder
Hor.
39
Solder Inspection
Recommended Color: Open Solder : 7. Pad Center (2D)
Color Item 0: R 33~100
Normal
41
Solder Inspection
Open Solder : 8. Pin Centre Part Area (2D)
Normal
Inspection Area The inspection area is at the center part of the pin
Recommended Color:
Color Item 0: B 33~100
Open
Solder
Hor.
Ver. Inspection Area
42
Solder Inspection
Note:
➢‘*’ is AND logic, all conditions need to be passed
➢ ‘+’ is OR logic, either one condition passes consider passed
43
Solder Inspection
Pin Bending Detection (2D)
Horizontal Vertical Length
Width
Normal Inspection
Area
Ver.
44
Solder Inspection
Pin Bending Detection 2D (Side Fillet)
Vertical Length
Horizontal Width
Normal Inspection
Area
Vertical Length
Vertical Length
Inspection Area: Inspect both sides of the pin
Pin
Bending Color Ratio: The red color within the detection area
should not exceed the set value
Vertical Length
Pin
Hor. Bending
Recommended Color:
Ver. Color Item 0: R 33~100 ,W 50~255
Vertical Length
45
Recommended Color:
Solder Inspection Normal Inspection Area: Broken Tin Detection (2D)
Color Item 0: R 35~100 ,W 50~255
Pin External Part Detection:
Color Item 0: G 35~100 ,W 50~255
Color Item 1: B 35~100 ,W 50~255
Pin Part
Area Length
A Solder Pad Outer Part
Solder Pad Horizontal Width = 100%
Normal
B
Inner Side Excluded Inspection
Tip
Area
Excluded Part A:
1. Extract the red color of exposed pad and its brightness
2. Set the value for inner side excluded and tip excluded
Broken 3. Within the inspection area, if the continuous qualified
Solder length is lower than the set value then it is OK
Part B:
Area Length 1. Extract the blue and green color of solder and its brightness
2. From the ending line of inspection area in part A, extend
the ‘Area Length’ for pin external part detection area based
Broken on the set value
Solder 3. Within the area, if the actual test color ratio less than set
Hor. value then it is OK
ℎ
𝐹𝑖𝑙𝑙𝑖𝑛𝑔 𝐻𝑒𝑖𝑔ℎ𝑡 = × 100%
𝐻
Figure 1
Recommended Color:
Color Item 0: R 40~100,W 100~255
49
Solder Inspection Excessive Adhesive (2D)
Recommended Color:
Color Item 0: R 40~100
50
THANK YOU
明锐理想科技
51