PCB Image Detection in GUI
显示 更早的评论

Hi, I'm trying to create a GUI to detect the defects in PCB. The image shown is the reference image that I would wish to create but I failed to search for any references to create the green boxes as detection and determine the type of defects in GUI. I'm wondering if there are any references I could refer to?
9 个评论
KIVANÇ mutlu
2020-5-30
I made comparison of fixed pcb images but XOR comparison does not work on samples from different locations. I need to first identify the PCB location using the fiducial reference. I want to teach fiducial points. Then he will search for these points in certain areas and determine his coordinate. According to the first reference, the periodic, that is, sliding of the pcb is determined.
Image Analyst
2020-5-30
KIVANC, how/where did you get his images? I don't see that he posted them.
Anyway, did you try imregister()? And can you post/attach his images?
Lee Hao Nam
2020-5-31
编辑:Image Analyst
2020-5-31
Image Analyst
2020-5-31
I don't know what img3 is, but you need to look at the various features of each blob, like it's area, or perimeter, or circularity, or aspect ratio, or something like that.
Lee Hao Nam
2020-6-1
Image Analyst
2020-6-1
OK, so please describe in words, what are the features that describe the various classes, and give the class names, like "nick", "complete break" or whatever.
Lee Hao Nam
2020-6-1
edgar sanchez
2020-6-3
do you have the full project? Im doing this for school. Can you send it too me? the code.
gary.rage@gmail.com
Today is the due date :)
Image Analyst
2020-6-4
edgar, I'm not sure who you're asking. I guess you're asking Lee. I don't have his code (other than the partial chunk above) and I don't know if he finished or not. All he did so far was to subtract the test image from the template/reference image and find differences and put boxes around them. He never said (despite me asking) what constitutes the 5 different types of defects, so the classification into those defects is not shown in the above code. Moreover, the code expects perfect alignment between the two images, which is not likely to happen in a real world situation. I'm dealing with that myself all week with my current project where a robot is supposed to move an object and end up back in the same position every time. It's close, but not perfect. It's not aligned perfectly to the nearest pixel so there are "edge effects" that show up a little thin lines along the edges where they did not subtract perfectly and we need to handle those.
回答(3 个)
Image Analyst
2020-5-20
编辑:Image Analyst
2020-5-20
You can use
hold on;
rectangle('Position', [x, y, width, height], 'EdgeColor', 'g');
to create green rectangles.
See this link for algorithms: http://www.visionbib.com/bibliography/contentschar.html#KK11219
For examples:
Segmentation and Preprocessing of Electrical Schematics Using Picture Graphs,
CVGIP(28), No. 3, December 1984, pp. 271-288.
A Primary Algorithm for the Understanding of Logic Circuit Diagrams,
PR(17), No. 1, 1984, pp. 125-134.
Locating, Replacing, and Deleting Patterns in Graphics Editing of Line Drawings,
CVGIP(29), No. 1, January 1985, pp. 37-46.
An Automatic Circuit Diagram Reader with Loop-Structure-Based Symbol Recognition,
PAMI(10), No. 3, May 1988, pp. 331-341.
A Topology-Based Component Extractor for Understanding Electronic Circuit Diagrams,
CVGIP(44), No. 2, November 1988, pp. 119-138.
Elsevier DOI Application, Circuit Diagrams. Automatic contour following based on the patterns that can appear. BibRef8811
Giselle Roy
2020-6-10
0 个投票
hmm @Lee did you try using the CNN object detector, try classifying each defect based on it perimeter turn radius or if you have any other approach send it in, i may be able to solve it
Abi
2023-2-8
0 个投票
Code please
2 个评论
Image Analyst
2023-2-8
编辑:Image Analyst
2023-2-8
To learn how to write MATLAB code, invest 2 hours of your time here:


类别
在 帮助中心 和 File Exchange 中查找有关 Hamamatsu Hardware 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!