| 1:Intput: Image I of PCB bare board defects to be detected |
| 2:Construct 4-layer Gaussian pyramid image of defect image I of PCB bare |
| board to be detected |
| 3:Calculate the multi-scale gray level co-occurrence matrix feature vector |
|
of I via Eqs. (1)–(8)
|
| 4:Calculate the multi-scale directional projection feature vectors |
|
for I via Eqs. (9)–(20)
|
| 5:Calculate the multi-scale gradient direction information entropy feature vector |
| Ent = [H1, H2, H3, H4] of I for I via Eqs. (21)–(25)
|
| 6:Calculating the deep semantic feature vector D = [d1, d2, d3, …, dn], n = 512 of I based |
| on the improved VGG-16 neural network |
| 7:Extract features from image I to obtain M feature vectors
|
| 8:Reduce the dimension of via Eqs. (26)–(30), obtain N feature vectors |
|
|
| 9:Calculate the weight of each feature vector of via Eqs. (31)–(38)
|
| 10:Calculate the feature vector V after parallel weighted fusion via Eq. (39)
|
| 11:Output: the feature vector after parallel weighted fusion |