慕德旭,杨 蕾,吴志强.基于改进多尺度Retinex图像增强和支持向量机的苹果表面缺陷检测[J].食品安全质量检测学报,2023,14(20):183-191 |
基于改进多尺度Retinex图像增强和支持向量机的苹果表面缺陷检测 |
Apple surface defect detection based on improved multi-scale Retinex image enhancement and support vector machine |
投稿时间:2023-07-04 修订日期:2023-10-23 |
DOI: |
中文关键词: 缺陷检测 多尺度Retinex 多阈值比较分割 Gamma矫正 光晕现象 支持向量机 |
英文关键词:defect detection multi-scale Retinex multi-threshold comparison segmentation Gamma correction halo phenomenon support vector machine |
基金项目:国家自然科学基金原创探索计划项目(42050103)、教育部产学合作协同育人项目(220604307204001) |
|
|
摘要点击次数: 347 |
全文下载次数: 348 |
中文摘要: |
目的 采用改进多尺度Retinex (multi-scale Retinex, MSR)图像增强技术和支持向量机(support vector machine, SVM)分类技术实现苹果表面缺陷检测。方法 利用MSR图像增强方法消除苹果样本图像中的光照不均匀现象和表面颜色复杂的干扰。对图像增强结果进行自适应Gamma矫正以提高光晕区域对比度, 并采用基于局部灰度的多阈值比较分割方法消除光晕现象干扰并得到初步缺陷分割结果。在此基础上, 提取苹果梗萼与疤痕的颜色特征, 引入SVM对梗萼和疤痕进行分类, 并对梗萼进行剔除, 仅保留疤痕作为最终缺陷检测结果。结果 将本研究的方法部署到嵌入式设备OpenMV4H7Plus中并经实验证明, 梗萼识别准确率达到93.8%, 疤痕检测准确率达到92.8%。结论 利用改进MSR图像增强技术和SVM分类技术可以在光照不均匀和颜色信息复杂的苹果表面实现疤痕的有效检测。 |
英文摘要: |
Objective To realize the apple surface defect detection using the improvement of multi-scale Retinex (MSR) image enhancement technology and support vector machine (SVM) classification technology. Methods The MSR image enhancement method was used to eliminate the interference of the light unevenness phenomenon and the complex color of the surface in apple sample images. Adaptive Gamma correction was applied to the image enhancement results to improve the contrast of the halo region, and a multi-threshold comparison segmentation method based on the local grayscale was used to eliminate the interference of the halo phenomenon and obtain preliminary defect segmentation results. On this basis, the color features of the apple stem calyx and scar were extracted, and a support vector machine was introduced to classify the stem calyx and scar. The stem calyx was eliminated, and only the scar was retained as the final defect detection result. Results The method described in this paper was deployed in the embedded device OpenMV4H7Plus and experimentally demonstrated that the peduncle identification accuracy reached 93.8% and the scar detection accuracy reached 92.8%. Conclusion The improved MSR image enhancement technique and SVM classification technique can be used to achieve effective detection of scars on apple surfaces with uneven illumination and complex color information. |
查看全文 查看/发表评论 下载PDF阅读器 |