| 注册
首页|期刊导航|食品与机械|基于YOLOv8的水果外观检测与分类方法

基于YOLOv8的水果外观检测与分类方法

唐兴萍 王白娟 杨红欣 杨正明 李汝嘉 吴文斗

食品与机械2024,Vol.40Issue(7):103-110,8.
食品与机械2024,Vol.40Issue(7):103-110,8.DOI:10.13652/j.spjx.1003.5788.2023.80836

基于YOLOv8的水果外观检测与分类方法

Research on fruit appearance detection and classification method based on YOLOv8

唐兴萍 1王白娟 2杨红欣 1杨正明 1李汝嘉 3吴文斗4

作者信息

  • 1. 云南农业大学食品科学技术学院,云南昆明 650201
  • 2. 云南农业大学茶学院,云南昆明 650201
  • 3. 云南农业大学大数据学院,云南昆明 650201
  • 4. 云南农业大学食品科学技术学院,云南昆明 650201||云南农业大学大数据学院,云南昆明 650201
  • 折叠

摘要

Abstract

[Objective]To establish a nondestructive detection method for fruit appearance.[Methods]Nectarines were used as the research subject.The IQQU3 smart phone camera was used to capture the picture data,which was then preprocessed.The image annotation program Labelimg was used to label the data.Panning,left-right flipping,and mirror flipping were used to enlarge the data.Using an ratio of 8∶2,the enlarged photos were split into training and test sets.Lastly,the data was trained for 150 epochs using five YOLOv8 models(n,s,m,l,x).The training results of the five models were compared and analyzed in order to determine which detection model was the best.[Results]The nectarine dataset was constructed,there were 4,205 total photos;YOLOv8(n,s,m,l,x)the total loss values in the training set were 2.275,1.778,1.482,1.880,and 1.401,respectively,The total loss values of the test set were 2.724,2.253,2.057,2.105,and 2.004,respectively;YOLOv8(n,s,m,l,x)precision were 94.0%,98.0%,97.4%,97.3%,97.9%,respectively,The recall were 95.4%,95.5%,95.9%,96.9%,and 96.9%,respectively.In a comprehensive comparison YOLOv8s was the better model,and the average detection accuracy mAP_0.5 was 97.8%.The average precision of fresh,bruise and scar were 96.2%,98.8%and 98.4%,respectively.The inference time and calculation amount(GFLOPs)were 179.4 ms and 28.4 respectively.[Conclusion]YOLOv8 can effectively detect the quality of fruit appearance,which can be used for non-destructive testing of fruit appearance,and this study can provide new ideas for non-destructive testing of fruits.

关键词

YOLOv8/油桃/外观品质/检测分类

Key words

YOLOv8/nectarine/fruit appearance quality/testing and classification

引用本文复制引用

唐兴萍,王白娟,杨红欣,杨正明,李汝嘉,吴文斗..基于YOLOv8的水果外观检测与分类方法[J].食品与机械,2024,40(7):103-110,8.

基金项目

云南省重大科技专项计划项目(编号:A303202324600101) (编号:A303202324600101)

科技创新项目(编号:S9032023111) (编号:S9032023111)

食品与机械

OA北大核心CSTPCD

1003-5788

访问量0
|
下载量0
段落导航相关论文