Fallen clear plastic bottle detection
Afficher commentaires plus anciens
Hello everyone,
I'm currently working on a project for detecting the presence of a fallen clear plastic bottle in a picture. My problem is that I have issues having distinct shapes that I can use to compare with a known pattern. What I obtain are rough shapes of a bottle fractures in multiple pieces. If I use filters to fill in those gaps, I lose the frontier between two bottles.
I did some test with imadjust, histeq, adapthisteq but it only barely helped...
I'm kid of a beginner in MatLAB image processing.
If you have some tips on what filters/tools, feel free to comment below.
Thanks,
Nick
Réponses (1)
darova
le 8 Mai 2019
Try this
clc, clear
I1 = imread('111.jpg');
I = rgb2gray(I1);
I2 = edge(I);
I3 = imdilate(I2,true(3,3));
I4 = bwareaopen(~I3,1e4);
subplot(131)
imshow(I)
title('Gray original')
subplot(132)
imshow(I3)
title({'edge()','imdilate()'})
subplot(133)
imshow(~I4)
title('bwareaopen()')
Catégories
En savoir plus sur Object Analysis dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!