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.

 採用された回答

Walter Roberson
Walter Roberson 2016 年 1 月 12 日

0 投票

image registration and then image subtraction.

2 件のコメント

Image Analyst
Image Analyst 2016 年 1 月 12 日
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 2016 年 1 月 12 日
And remember to take into account potential differences in light levels or shadowing.

サインインしてコメントする。

その他の回答 (1 件)

Vincent Chan
Vincent Chan 2016 年 1 月 12 日

0 投票

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

2 件のコメント

Walter Roberson
Walter Roberson 2016 年 1 月 12 日
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 2016 年 1 月 12 日
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.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeGeometric Transformation and Image Registration についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by