Manual inspection on PCB flux defects, which brings harmful effects on the board which may come in
the form of corrosion and can cause harm to the assembly. In short, it brings improvement in Printed
Circuit Boards (PCB) production quality, principally concerning the acceptance or rejection of the
PCB boards. To develop new algorithm in image processing which detects flux defect at PCB board
during re-flow process and achieve good accuracy of the PCB quality checking. The machine will be
designed and fabricated with the total automation control system with mechanical PCB loader/unloader,
pneumatic system handler with vacuum cap, vision inspection station and final classification station (accept or reject). The image processing system is based on shape (pattern) and color image analysis techniques with Matrox Imaging Library. The shape/texture of the PCB pins is analyzed by using pattern matching technique to detect the PCB flux defect area. The color analysis of the flux defect in a PCB boards are processed based on their red color pixel percentage in Red, Green and Blue (RGB) model. The red color filter band mean value of histogram is measured and compared to the value threshold to determine the occurring on the PCB flux defects. The system was tested with PCB boards from factory production line and achieved PCB board flux defects sorting accuracy at 86.0% based on proposed pattern matching technique combined with red color filter band histogram.