王巧华, 徐步云, 田文强, 陈远哲, 范维, 刘世伟. 基于图像处理-深度学习的孵前种鸭蛋外部品质在线无损检测[J]. 农业工程学报, 2023, 39(2): 233-241. DOI: 10.11975/j.issn.1002-6819.202208131
    引用本文: 王巧华, 徐步云, 田文强, 陈远哲, 范维, 刘世伟. 基于图像处理-深度学习的孵前种鸭蛋外部品质在线无损检测[J]. 农业工程学报, 2023, 39(2): 233-241. DOI: 10.11975/j.issn.1002-6819.202208131
    WANG Qiaohua, XU Buyun, TIAN Wenqiang, CHEN Yuanzhe, FAN Wei, LIU Shiwei. Online nondestructive detection of the external quality of pre-incubation duck eggs based on image processing and deep learning[J]. Transactions of the Chinese Society of Agricultural Engineering (Transactions of the CSAE), 2023, 39(2): 233-241. DOI: 10.11975/j.issn.1002-6819.202208131
    Citation: WANG Qiaohua, XU Buyun, TIAN Wenqiang, CHEN Yuanzhe, FAN Wei, LIU Shiwei. Online nondestructive detection of the external quality of pre-incubation duck eggs based on image processing and deep learning[J]. Transactions of the Chinese Society of Agricultural Engineering (Transactions of the CSAE), 2023, 39(2): 233-241. DOI: 10.11975/j.issn.1002-6819.202208131

    基于图像处理-深度学习的孵前种鸭蛋外部品质在线无损检测

    Online nondestructive detection of the external quality of pre-incubation duck eggs based on image processing and deep learning

    • 摘要: 种鸭蛋的品质影响着孵化率和健雏率,挑选优质种鸭蛋孵化不仅可以减少孵化占用的资源,还可以及时将不适宜孵化的种鸭蛋筛选出另做它用,避免其孵化失败造成浪费。为了对不同外部品质的孵前种鸭蛋进行检测分级,该研究设计了一种基于图像处理和深度学习的种鸭蛋外部品质检测系统。在传送轨道上获取种鸭蛋的透射图像后,选取多张鸭蛋图像中的最大长轴计算形状特征,通过交错值衡量大小头相似度;在伽马变换平衡图像颜色后,使用HSV分割提取脏污特征图来计算脏污面积;采用自适应阈值分割和脏污特征图掩膜对图像样本数据进行预处理,搭建裂纹识别网络CrackNet来识别脏污鸭蛋的裂纹。结果表明,该检测系统可计算种鸭蛋的大小、蛋形指数、脏污面积和大小头相似度,检测表面裂纹,计算所得长轴和蛋形指数的均方误差仅0.220 2 mm2和0.000 058,CrackNet的裂纹识别准确率为98.03%,研究结果可为入孵前种鸭蛋的筛选工作提供技术支持。

       

      Abstract: Abstract: The quality of breeding duck eggs dominates the hatching rate and healthy hatchling rate. The selection of high-quality breeding duck eggs can effectively reduce the occupied hatching resources and the wastes that are caused by the hatching failure. It is a high demand to timely screen out the breeding duck eggs unsuitable for hatching for other purposes. In this study, a novel detection system was designed to screen the external quality of breeding duck eggs before hatching using image processing and deep learning. The light source was arranged below the track. The shooting of the industrial camera was controlled by the photoelectric sensor. Three transmission images of the duck eggs were then collected, when the duck eggs entered the dark box. Furthermore, the real major axis was calculated by the maximum major axis of the duck eggs in these images, whereas, the real minor axis was also calculated by the average minor axis of the duck eggs. The calculated major axis value was then divided by the minor axis value to obtain the egg shape index. At the same time, the duck egg image was flipped in the long-axis direction, and then overlapped with the original image. The ratio of the non-overlapping part to the duck egg area was calculated to obtain the crisscross value, which was used to measure the similarity of the duck egg heads. The dirt feature was extracted to calculate the dirt area using the threshold segmentation in the HSV color space. The reason was that the color of the dirty part was generally darker than that of the crack on the duck egg surface in the transmission image. More importantly, the accuracy of threshold segmentation depended mainly on the different brightness of the duck egg in the transmission image, due to the difference in eggshell color and thickness. Therefore, the gamma transform was used to balance the color and brightness of the image before the HSV threshold segmentation. As such, the brightness reached a similar range in the image. Meanwhile, the adaptive threshold segmentation was used to preprocess the image sample data. The crack information was extracted in the case of uneven brightness in the image. The previously obtained image with the dirt feature was used as the mask to filter the crack feature image, in order to remove the interference caused by the dirt information. Finally, the convolution neural network (CNN) EfficientNetV2 was improved to establish the crack identification network CrackNet, in order to identify the cracks of dirty duck eggs. The inspection system was then obtained for the external quality of breeding duck eggs. Consequently, the size, egg shape index, and dirt area of breeding duck eggs were calculated to evaluate the similarity between the two ends of duck eggs, particularly for the detection of surface cracks. The mean square error (MSE) of the calculated long axis and egg shape index was only 0.220 2 mm2 and 0.000 058, respectively. The crack identification accuracy of CrackNet was 98.03%. The finding can also provide technical support to screen the breeding ducks before hatching.

       

    /

    返回文章
    返回