How do I differentiate plastic water bottles having different sizes?
4 次查看(过去 30 天)
显示 更早的评论
Hello. I have to recognize different sized plastic bottles and count only one size.I am new at matlab. Can I have help on that. Here are the samples. Thanks
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/158981/image.jpeg)
0 个评论
回答(1 个)
Image Analyst
2014-3-19
If they don't overlap and have a pure white background, it's trivial. Just threshold and calculate the area(s). See my image segmentation tutorial http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862
If they overlap it's much tougher. For example if that small Vhai bottle was positioned right at the center of the larger bottle, then you may have to look at other characteristics, such as finding a cap and estimating the size of the cap. That would be a huge jump in complexity from a simple thresholding situation. Hopefully your homework assignment or small project doesn't want you to do something as difficult as finding overlapped and partially visible (obscured, occluded) bottles..
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!