华中农业大学学报2025,Vol.44Issue(2):9-16,8.DOI:10.13300/j.cnki.hnlkxb.2025.02.002
基于双目-红外多源数据的猪只体尺自动测量方法
Method of automatically measuring body size of pigs based on stereo-infrared multi-source data
摘要
Abstract
A non-contact method of measuring the body size of pigs based on stereo-infrared images was established to address the issues of common color images easily affected by environmental lighting and depth images prone to producing holes in the process of measuring the body size of pigs.Infrared images were used to extract foreground of pigs.Ellipse fitting and projection difference methods were used to seg-ment the head and tail of pig.Convex hull analysis and symmetry testing methods were used to select the ideal posture of the pig.Stereo images were used to obtain depth information of the pig,and a homography matrix was used to fuse the advantages of both the infrared and stereo images.A method of measuring the body size of pigs was designed based on these.The results showed that the contours of the pig extracted from the infrared images were clear and smooth.The algorithm of selecting ideal posture had an accuracy of 94.0%.The average relative error of the measurements for body length,body width,hip width,body height,and hip height was 1.78%,3.26%,3.20%,1.92%,and 2.27%,respectively,with an overall av-erage relative error of 2.49%and an average absolute error of 1.42 cm.It is indicated that the algorithm pro-posed meets the requirements of accuracy for measuring the body size of pigs.It will provide a feasible solu-tion for continuously and automatically measuring the body size of pigs.关键词
猪/体尺测量/单应性矩阵/数据融合/姿态检测Key words
pigs/measurement of body size/homography matrix/data fusion/posture detection分类
农业科技引用本文复制引用
周明彦,黎煊,祝志慧,陈萌放,徐迪红..基于双目-红外多源数据的猪只体尺自动测量方法[J].华中农业大学学报,2025,44(2):9-16,8.基金项目
武汉市生物育种重大专项(2022021302024853) (2022021302024853)
生猪现代育种技术研发及新品种选育(HBZY2023B006-03) (HBZY2023B006-03)
华中农业大学-中国农业科学院深圳农业基因组研究所合作基金项目(SZYJY2022031) (SZYJY2022031)