detecting object code?
13 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
niloofar zolghadr
am 28 Jun. 2019
Kommentiert: niloofar zolghadr
am 29 Jun. 2019
Hi, I have watched this video https://www.youtube.com/watch?v=ddXvs1Wp95A in you tube . and I followed all the codes that he described for detecting object but one part,describing rectangle, (because this line was long and not readable in video) was not readable for me .I know it may seem easy but my profession field is architecture and I am absolutely beginner in this field so If it is possible I ask for the code in (line 14 in the function findtemplate) which is about describing a rectangular.
Thank you so much
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 28 Jun. 2019
Looks like he's using normalized cross correlation as a template finding technique. See my attached demo.
3 Kommentare
Image Analyst
am 28 Jun. 2019
You need to pass in [x, y, width, height] which is what the BoundingBox measurement gives.:
r=regionprops(bwlabel(bw), 'BoundingBox');
hold on;
for k = 1 : length( r )
thisBB = r(k).BoundingBox;
rectangle('Position', thisBB);
end
Weitere Antworten (1)
niloofar zolghadr
am 29 Jun. 2019
Bearbeitet: niloofar zolghadr
am 29 Jun. 2019
2 Kommentare
Image Analyst
am 29 Jun. 2019
You may need to lower your threshold or try a different technique, like deep learning.
Siehe auch
Kategorien
Mehr zu Image Preview and Device Configuration finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!