How to differentiate objects ahving different sizes?

2 次查看(过去 30 天)
I have to differentiate plastic water bottles of different sizes using matlab i.e water bottles of different sizes will pass in front of a camera which will capture their image and brought if to PC for processing using matlab and I should be able to count a certain sized bottle and ignore others I have to make our project to distinguish between these two sizes. For demo I will place the bottles by hand. Please find the attached samples

采纳的回答

Image Analyst
Image Analyst 2014-3-28
I believe I answered that in your duplicate question. http://www.mathworks.com/matlabcentral/answers/122191#answer_129108 But you didn't officially mark it as "Accepted", and I don't see any of your own code posted, so either you didn't see my answer in your duplicate question, or you're waiting for me to do it for you. Again, my Image Segmentation Tutorial, which was a Pick of the Week shows you how to discriminate objects based on size.
Remember, it's your project, so I can't just do it all for you but I'm giving you a huge head start . You should take advantage of that help. All you have to do is to put your bottles on a uniform background and make slight customization to my code, which is well within your capabilities. I know you can do it, I have confidence in you because you're a smart engineer. Post your code here if you need help.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Image Processing Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by