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.

 Respuesta aceptada

Walter Roberson
Walter Roberson el 12 de En. de 2016

0 votos

image registration and then image subtraction.

2 comentarios

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().
Walter Roberson
Walter Roberson el 12 de En. de 2016
And remember to take into account potential differences in light levels or shadowing.

Iniciar sesión para comentar.

Más respuestas (1)

Vincent Chan
Vincent Chan el 12 de En. de 2016

0 votos

any codes which you can recommend me to reference on? as i m new to matlab especially on image processing toolbox.

2 comentarios

Walter Roberson
Walter Roberson el 12 de En. de 2016
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?
Vincent Chan
Vincent Chan el 12 de En. de 2016
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.

Iniciar sesión para comentar.

Categorías

Preguntada:

el 12 de En. de 2016

Comentada:

el 12 de En. de 2016

Community Treasure Hunt

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

Start Hunting!

Translated by