Object positioning is a fundamental task for assembly and inspection operations in the electronic industry. Traditional methods such as template matching and feature-point detection have been applied for object positioning. They are however computationally expensive and are generally affected by environmental changes. Deep learning models based on Convolutional Neural Network (CNN) have also been used for object positioning. They are computationally very efficient but can be sensible under environmental variations such as illumination and noise. In this article, a Cosine-Convolution operation is proposed with the objective of minimizing the effects of illumination variations. The proposed Cosine-Convolution can substitute any convolutional operation in a CNN-based regressor for positioning tasks. The proposed convolution is based on cosine-measure that normalizes the convolution between an image window and a filter at local scope. The proposed Cosine-Convolutional Neural Network (Cosine-CNN) performs more accurate than the traditional CNN under environment variations, including illumination changes, noise, defocusing and template occlusion. The experimental results reveal that the proposed model can reach mean prediction errors smaller than 1 pixel and <inline-formula xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink"> <tex-math notation="LaTeX">$1^\circ$</tex-math> </inline-formula> for object shift and rotation, regardless of the environmental variations. The method is computationally very fast, with an average evaluation time of 1.2-ms for real-time PCB positioning. <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">Note to Practitioners</i> —The training of deep learning models based on Convolutional Neural Network (CNN) can be tedious. Image samples with different illumination settings must be provided to have an efficient and robust model, which may not be easy to acquire or synthesize. This study proposes a solution to the challenge of illumination variations in images for the object positioning task in Printed Circuit Boards (PCB). A new Convolutional operation called Cosine-Convolutional that normalizes the traditional Convolution is introduced to overcome the illumination variations in the input images. Experimental results demonstrate that the proposed Cosine-Convolutional operation is less sensitive against lightning variations with respect to the training images.
Read full abstract