Dish image segmentation and removal method based on instance segmentation and spatial prior clustering
By combining YOLO instance segmentation, GrabCut, and K-means color clustering, plates are automatically removed from food images, solving the interference problem in food recognition and nutritional estimation, and achieving efficient and accurate food image processing.
Patent Information
- Application Number
- CN202610475421.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-04-10
- Publication Date
- 2026-06-26
AI Technical Summary
Existing technologies struggle to automatically and accurately remove diverse plates from food images, especially plates of different shapes and colors, which interferes with food recognition and nutritional estimation tasks.
The YOLO instance segmentation model is used to extract images of individual dishes. The GrabCut algorithm generates a transparent background. Combined with K-means color clustering with spatial prior constraints, the plate region is automatically identified and removed. By using the prior constraint that the outer edge of the image must be a plate and the center must be a dish, K-means clustering and connectivity verification are used to prevent misjudgment.
It enables automatic removal of plates of different colors and shapes, improves batch processing efficiency, ensures the purity and robustness of food images, and supports food analysis in diverse dining scenarios.