Background subtraction for image extraction

Hello there, I have to subtract the background from the picture and only focus the pomegranates in the picture. So, can anyone suggest me code for doing this? I need this code to fuirther pursue my project. I have attached the picture along this question block.

回答(1 个)

If you just want to get the red ones, try the Color Thresholder app on the Apps tab of the tool ribbon. If you want to do it based on shape of uniformly colored areas, I think you'll have to do transfer learning with a deep learning network, like yolo or something.

类别

帮助中心File Exchange 中查找有关 Deep Learning Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by