Which image processing technique I should use ?

There is 1 good pcb board with components etc. resistor, ic chip , capacitor will be soldered. And 1 bad pcb with missing component. What approach or algorithm should I use ? To detect the missing component ? Pattern matching ? I am using raspberry pi with raspberry pi camera with matlab.

 Risposta accettata

Walter Roberson
Walter Roberson il 12 Gen 2016
image registration and then image subtraction.

2 Commenti

Be sure to cast to double to avoid clipping (if they are integer images after registration):
diffImage = abs(double(registeredImage1) - double(registeredImage2));
% Threshold to find substantial differences, not noise
diffImage = diffImage > 5; % Or whatever value works.
imshow(diffImage, []);
See help on imregister().
And remember to take into account potential differences in light levels or shadowing.

Accedi per commentare.

Più risposte (1)

Vincent Chan
Vincent Chan il 12 Gen 2016
any codes which you can recommend me to reference on? as i m new to matlab especially on image processing toolbox.

2 Commenti

How consistent are the images? Is it possible that they are different rotations? If so then are the rotations only multiples of 90 degrees or could they be arbitrary? Is the lighting the same for each image? Is the distance between the camera and the board the same for each image so the occupied portion of the image is always the same size?
not much of rotation. likelihood will be fixed in place. Lighting will be using 9V LED light with 9v battery. the distance of the capture image will be the same as there will be a structure for the camera.

Accedi per commentare.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by