Technical Support Technical Support

How does AOI vision inspection work

Author: Farway Electronic Time: 2026-08-13  Hits:

What Is AOI Vision Inspection?

Automated Optical Inspection, commonly called AOI, is a machine-vision-based method that checks manufactured circuit boards and assemblies for visible defects without touching them. A camera captures an image of each board, software compares that image against a known-good reference, and the system decides within seconds whether the board passes or needs rework. In electronics manufacturing, AOI has become one of the most relied-upon inspection steps on the SMT assembly line because it catches problems that are difficult for a human eye to find consistently at production speed.

For companies offering turnkey SMT PCB assembly service, AOI is not an optional add-on but a standard quality gate. It inspects every single board that comes off the line rather than a statistical sample, which means a defect is caught at the station where it occurs instead of travelling further downstream where rework costs multiply.

Core Components of an AOI System

An AOI machine is built from four functional blocks that work together: illumination, image acquisition, motion handling, and inspection software. The quality of the system depends on how well these blocks are integrated rather than on any single component alone.

Illumination

Lighting is often described as the single most critical factor in AOI performance. LED ring lights, coaxial lights, backlights, and dome lights each highlight different features. Solder joints, for example, are highly reflective and have complex surface geometry, so a flat uniform light is not enough. Multi-angle lighting reveals the shape of a solder fillet by casting shadows that a camera can read. The lighting scheme is designed around which defects matter, not around the part itself.

Image Acquisition

High-resolution industrial cameras with CCD or CMOS sensors, paired with precision lenses, convert the optical scene into digital data. The resolution of the optical system determines the smallest defect the machine can resolve. Faster frame rates allow the system to inspect more boards per hour, which matters on a high-volume line.

Motion and Handling

Conveyors and stages move each board into position and present every surface to the camera. Precision motion control determines positioning accuracy and repeatability. If the board sits even slightly off-center each time, the inspection results become unreliable. Fiducial marks on the board are used for alignment, so the camera always knows where to look.

Software and Algorithms

The software performs the actual judgment. Traditional AOI relied on rule-based methods such as template matching, edge detection, and comparison against a golden sample, which is an image of a known-good board. Modern AOI increasingly uses deep learning models that can classify defects they were trained on and handle the natural variation that defeats rigid rules. The software stack defines detection capability, false-call rate, and how well the system adapts when the product mix changes.

How AOI Inspection Works Step by Step

Regardless of the specific machine or manufacturer, an AOI inspection follows a consistent four-step sequence: illuminate, capture, process, and decide.

Step 1: Illuminate the object. The lighting system turns on and bathes the board in light from specific angles and colors. Different defects respond to light differently. A solder bridge glints under angled light, a scratch catches side lighting, and a missing component leaves a dark gap. The lighting scheme is chosen to make the target defects visible while suppressing irrelevant background detail.

Step 2: Capture images. The camera takes one or more high-resolution images of the board. Multiple images may be taken from different angles or under different lighting conditions to build a complete picture. The reflected light is converted into digital image data that the software can analyze.

Step 3: Process the images. The software aligns the captured image to a reference frame using fiducial marks, then compares it against the known-good reference. Rule-based algorithms check for specific features: is the component present, is it in the right position, is the polarity correct, does the solder joint look right? Deep learning models add the ability to recognize defect patterns they were trained on and to tolerate acceptable variation in component appearance.

Step 4: Decide and act. The system issues a pass or fail judgment, often with a defect classification that tells the operator what went wrong and where. Failed boards are flagged for rework or diverted from the line. The inspection data, including images of every flagged defect, is logged so that engineers can review trends and trace root causes back to the process step that created them.

What Defects Does AOI Detect on a PCBA?

In PCBA manufacturing, AOI is tuned to catch a specific set of surface-visible defects that arise during SMT placement and reflow soldering. The most common defect categories include:

  • Missing components: a part that should have been placed is absent, leaving an empty pad.
  • Misplacement: a component is shifted off its pad or rotated from its correct orientation.
  • Polarity errors: a diode, capacitor, or IC is placed in the wrong direction.
  • Solder bridges: excess solder connects two pads or pins that should be separate, creating a short circuit.
  • Insufficient solder: too little solder on a joint, which may lead to an unreliable connection.
  • Excessive solder: too much solder, which can bridge to adjacent pads or create a bulky joint.
  • Tombstoning: a passive component, typically a chip resistor or capacitor, stands up on one end due to uneven solder wetting during reflow.
  • Lifted leads: a component lead is not fully seated on its pad.
  • Wrong component: a part is placed that does not match the bill of materials.

These are the defect types that matter most in PCBA testing, because each one can cause a field failure if it reaches the customer. AOI catches them at the board level, before the assembly moves to functional testing or final product assembly.

2D AOI Versus 3D AOI

AOI systems are categorized by dimensionality. A 2D AOI system works from flat images and judges features by their appearance, color, and contrast. It is effective for detecting missing components, misplacement, polarity, and obvious solder problems. A 3D AOI system adds height information, typically through structured-light projection or multi-angle imaging, so it can measure solder volume, coplanarity, and component tilt. For solder-joint inspection, 3D AOI is essential because a 2D image alone cannot reliably tell whether a solder fillet has the right shape and volume. Many production lines use a combination of both, with 2D AOI as the primary screen and 3D AOI for joints that need volumetric verification.

Inline Versus Offline AOI Placement

Where AOI sits on the production line determines what it catches and how quickly. Inline AOI is built directly into the production line and inspects every board as it passes. Offline AOI is a standalone bench-top station used for sampling, engineering analysis, or lower-volume work. In a typical SMT line, AOI is placed after reflow soldering, because that is the point where the widest range of defects, from missing parts to solder bridges, can be caught at a single station. Some lines add a second AOI station after solder paste printing, before components are placed, to catch paste defects early. The trade-off is that more stations catch problems sooner but require additional equipment and floor space.

AOI Compared With SPI and X-Ray Inspection

AOI is one of several inspection technologies used in PCBA manufacturing, and it is often confused with two closely related methods: SPI and X-ray inspection.

SPI (Solder Paste Inspection) is a specialized stage that inspects solder paste immediately after it is printed and before components are placed. It measures paste volume, area, and height to catch printing defects before they become placement defects. AOI, by contrast, covers a broader range of defects across components and joints after assembly.

X-ray inspection (AXI) sees through the board to find hidden defects that visible light cannot reach, such as voids in BGA solder joints under a package, internal cracks, or defects in multi-layer assemblies. AOI sees only surface features. A line that uses ball-grid arrays or stacked packages needs X-ray inspection for those hidden joints, while AOI handles the visible surface. The two are complementary: AOI serves as the high-throughput screen, and X-ray is reserved for the subset of joints that demand it.

Where AOI Fits in the PCBA Manufacturing Workflow

AOI does not work in isolation. It is one station in a multi-step manufacturing chain that runs from PCB fabrication through component sourcing, SMT placement, reflow soldering, DIP plug-in welding, conformal coating, functional testing, and finished product assembly. Each step has its own quality controls, and AOI is the checkpoint that verifies the visual integrity of the assembly after soldering.

In a well-run PCBA line, the inspection sequence typically follows this pattern: SPI checks the solder paste right after printing, AOI inspects the board after reflow, X-ray inspects hidden joints if the design calls for it, ICT or FCT verifies electrical function, and a final visual inspection confirms the finished product. Each method catches a different class of defect, and together they form a layered defense that prevents faulty boards from reaching the customer.

This layered approach is what manufacturers like Farway Electronic use in their Shenzhen facility. Their inspection capabilities include SPI solder-paste inspection, AOI optical inspection, FAI first-article inspection, X-ray inspection, ICT circuit testing, thermal imaging, and FCT functional testing, all operating under IPC-A-610 assembly standards and ISO 9001 quality management. The goal is to catch every defect at the earliest point where it can be detected, because rework cost rises sharply the further a defective board travels down the line.

Best Practices for Effective AOI

Getting reliable results from AOI requires more than installing a machine. Several practices recur across well-run AOI deployments:

  • Build a reliable golden sample. Most AOI programs reference a known-good board. The quality of that reference, and the number of acceptable variants captured, directly determines detection accuracy.
  • Design lighting around the defect, not the part. Decide which defects matter first, then engineer illumination to make those defects visible. Generic lighting produces generic results.
  • Place AOI where it catches the most for the least cost. Post-reflow placement catches the widest range of defects at a single station.
  • Manage the false-call and escape trade-off. Set thresholds against real production data, review flagged boards regularly, and retune as the process drifts. AOI is not a set-and-forget tool.
  • Use AOI data, not just verdicts. The richest value comes from analyzing defect trends over time to find and fix root causes upstream, turning inspection from a pass/fail gate into a process-improvement tool.

Why AOI Matters for Quality Assurance

The real value of AOI is not simply that it finds defects. It turns inspection into information. A camera and a pass/fail verdict catch faulty boards. A well-integrated AOI system, feeding structured defect data back into the process, catches the causes of faulty boards before they recur. When defect data is tracked over time, engineers can identify whether a recurring problem stems from a stencil wearing out, a pick-and-place nozzle drifting, or a solder paste batch behaving differently.

This data-driven approach is what separates a manufacturer that simply inspects boards from one that continuously improves its process. Under quality frameworks like ISO 9001 and IATF 16949, the ability to trace defects to their root cause and demonstrate corrective action is a requirement, not a preference. AOI provides the inspection data that makes this traceability possible.

Conclusion

AOI vision inspection works by illuminating a circuit board, capturing high-resolution images, processing those images against a known-good reference, and deciding whether the board passes or needs rework. It catches the full range of surface-visible defects that arise during SMT assembly and reflow soldering, from missing components to solder bridges to tombstoning. When deployed as part of a layered inspection strategy that also includes SPI, X-ray, and functional testing, AOI ensures that every board leaving the line meets the quality standard the customer expects.

For manufacturers and product teams looking for a partner that integrates AOI into a complete PCBA manufacturing and testing workflow, the combination of standardized production, multi-stage inspection, and IPC-based quality control is what makes the difference between catching defects and preventing them.

Previous: What is the typical maximum PCBA board size for OEM producti Next: How to find mass production finished product assembly
Get In Touch with us

Hey there! Your message matters! It'll go straight into our CRM system. Expect a one-on-one reply from our CS within 7×24 hours. We value your feedback. Fill in the box and share your thoughts!

Get In Touch with us

Hey there! Your message matters! It'll go straight into our CRM system. Expect a one-on-one reply from our CS within 7×24 hours. We value your feedback. Fill in the box and share your thoughts!