基于YOLOv7的糖果气泡缺陷识别研究
Research on Candy Bubble Defect Recognition Based on YOLOv7
方晓东 1朱婷婷 1吴旻 1李星佑 1薛胜1
作者信息
- 1. 南京林业大学机械电子工程学院,江苏南京 210037
- 折叠
摘要
在硬糖制造过程中,由于糖浆温度不稳定、搅拌不均等原因导致硬糖中出现气泡缺陷,影响其外观和口感,因此需要对含气泡的硬糖进行检测剔除.针对糖果气泡缺陷小且位置不固定的问题,提出了一种基于YOLOv7的糖果气泡缺陷识别算法.首先,采集糖果的彩色图像和深度图像,并对其彩色图像进行直方图均衡化和中值滤波,构建糖果气泡缺陷数据库;然后,构建基于YOLOv7的气泡缺陷识别模型,采用SimOTA和ReOrg操作提高模型运算速度和识别精度;最后,将构建的糖果气泡缺陷识别模型与现有的其他深度学习目标检测算法进行对比,实验结果表明所提出的识别模型综合性能最优.
Abstract
During the manufacturing process of hard candies,problems such as unstable syrup temperatures and une-ven stirring can result in the formation of air bubble defects in the candies,which can negatively impact their appear-ance and taste.Therefore,it is necessary to detect and remove hard candies that contain air bubbles.To tackle the issue of small and randomly positioned air bubble defects in candies,this paper introduces a candy air bubble defect recognition algorithm based on YOLOv7.Firstly,colored images and depth images of the candies are collected.His-togram equalization and median filtering are then applied to the colored images in order to establish a database of candy air bubble defects.A YOLOv7-based model for recognizing air bubble defects is constructed,incorporating Si-mOTA and ReOrg operations to achieve a balance between processing speed and recognition accuracy.Finally,the con-structed model for recognizing candy air bubble defects is compared with existing deep learning object detection algo-rithms.Experimental results demonstrate that the proposed recognition model exhibits the best overall performance.
关键词
目标检测/糖果气泡/YOLOv7/在线检测Key words
object detection,candy bubble,YOLOv7/online detection引用本文复制引用
出版年
2024