Image background in image recognition
Ältere Kommentare anzeigen
Hi!
I want to find all occurences of this symbol in an image and is currently using CORR2 with a function that steps pixel-by-pixel through a larger image and try to find this symbol. The problem i find is that there are multiples of this symbol partially overlapping which it doesnt recognize as the image i compare to has a white background. How can I make corr2 (or a similar setup) to only match based on the black arrms of the symbol and not the background?
4 Kommentare
Mahesh Taparia
am 6 Jan. 2020
Hi,
Can you upload your image and specify the symbol you want to find?
Mats
am 6 Jan. 2020
Image Analyst
am 6 Jan. 2020
Yep, I think my code (in my answer below) will find it. Did you even try it? If not, why not?
Mats
am 8 Jan. 2020
Antworten (1)
Image Analyst
am 6 Jan. 2020
0 Stimmen
See attached demo that uses normxcorr2() to find a template in a larger image.
2 Kommentare
Mats
am 9 Jan. 2020
Image Analyst
am 9 Jan. 2020
Try raising the threshold to make sure it gets regions that are only really VERY close to the template.
Kategorien
Mehr zu Computer Vision with Simulink finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!