首页|基于双摄像头信息互补的牛只体尺测量算法

基于双摄像头信息互补的牛只体尺测量算法

扫码查看
目前基于计算机视觉的畜禽体尺测量方法主要是采用图像处理技术对单一的畜禽完整侧身图像进行分析处理,计算所需测点坐标,根据标定参数计算出畜禽的体尺数据.但是此类方法对于畜禽侧身图像的质量要求比较严苛,当图像中畜禽的局部侧身部位缺失时,会导致此类体尺测量方法难以应用.本文提出一种基于双摄像头信息互补的视觉三角身高测量算法和相似三角体直长测量算法.首先通过正上方摄像头与侧方摄像头的双视角图像信息互补来弥补单幅二维图像中缺少景深信息的不足,同时使用 YOLOV5 算法和凸包角点检测算法从牛背俯视图进行肩胛-尾尻测点提取.视觉三角身高测量算法通过上方摄像头获得牛只肩胛部位与侧方摄像头的相对水平距离,结合侧方摄像头中辅助标尺下端坐标的实际高度,基于相似三角形原理计算牛只身高.相似三角体直长测量算法利用牛只身高数据计算正上方摄像头画面中对应牛背的景深,然后结合景深信息、肩胛测点和尾尻测点之间的欧氏距离、上方摄像头对地空间分辨率,来计算牛只体直长.所提算法解决了不能获取到完整牛只侧身图像情况下的体尺测量问题.对30 头牛进行体尺测量,正常情况下牛只身高测量平均误差为 2.25%,体直长测量平均误差为3.33%;在相对拥挤情况下牛只身高测量平均误差为 3.03%,体直长测量平均误差为 3.68%.
Cattle body size measuring algorithms based on the complementary information of dual cameras
At present,computer vision based methods for measuring the body size of livestock and poultry mainly use image processing technique to analyze and process a single complete side image of livestock and poultry,calculate the required measurement point coordinates,and calculate the required body size data based on calibration parameters.However,such methods have strict requirements for the quality of side body images of livestock and poultry.When local side parts of livestock and poultry are missing in the images,it will make it difficult to apply such body size measurement methods.This paper proposes a visual triangle height measurement algorithm and a similar triangle length measurement algorithm based on dual camera information complementarity.Firstly,the proposed algorithm compensates for the lack of depth of field information in a single two-dimensional image by using the dual view image information of the overhead camera and the side camera to complement each other.At the same time,the YOLOV5 algorithm and convex hull corner detection algorithm are used for shoulder and tail measurement points extraction with the top view of the cow's back.The proposed algorithm obtains the relative horizontal distance between the shoulder blade of the cow and the side camera through the upper camera,and calculates the cow's height based on the principle of similar triangles,combined with the actual height of the lower coordinate of the auxiliary scale in the side camera.The proposed algorithm for measuring the straight length of similar triangles uses cow height data to calculate the depth of field corresponding to the cow's back in the directly above camera image.Then,it combines the depth of field information,the Euclidean distance between the shoulder and tail measurement points,and the spatial resolution of the above camera to the ground to calculate the straight length of the cow.It solves the measurement problem problem of body size in the case that the complete side image of cattle can not be obtained.The body size of 30 cattle is measured.Under normal circumstances,the average error of cattle height measurement is 2.25%,and the average error of body length measurement is 3.33%;the average error in height measurement of cows under relatively crowded conditions is 3.03%,and the average error in body length measurement is 3.68%.

body size measurementdual camerainformation complementaritymeasurement points extraction

蓝雷斌、沈雷、方一昊、黄安祥

展开 >

杭州电子科技大学通信工程学院,浙江 杭州 310018

体尺测量 双摄像头 信息互补 测点提取

2024

杭州电子科技大学学报
杭州电子科技大学

杭州电子科技大学学报

影响因子:0.277
ISSN:1001-9146
年,卷(期):2024.44(11)