首页 | 本学科首页   官方微博 | 高级检索  
     检索      

基于机器视觉的猪体体尺测点提取算法与应用
引用本文:刘同海,滕光辉,付为森,李 卓.基于机器视觉的猪体体尺测点提取算法与应用[J].农业工程学报,2013,29(2):161-168.
作者姓名:刘同海  滕光辉  付为森  李 卓
作者单位:1. 中国农业大学水利与土木工程学院,北京 1000832. 天津农学院计算机科学与信息工程系,天津 300384;1. 中国农业大学水利与土木工程学院,北京 100083;1. 中国农业大学水利与土木工程学院,北京 100083;1. 中国农业大学水利与土木工程学院,北京 100083
基金项目:国家公益性行业(农业)科研专项(201003011);国家星火计划项目(2012GA610027);天津市农业科技成果转化与推广项目(2011047)
摘    要:无应激获取猪体的体尺、体质量,是猪福利养殖中的一个重要任务,为解决机器视觉提取自然站立姿态下猪体的体尺测点识别率低的问题,该文通过在线摄像机获取120d龄长白猪的彩色图像,以猪体体尺传统的测量位置为研究基础,结合猪舍现场实际情况,提出了复杂背景下猪体个体信息提取的算法、基于包络分析的猪体头部和尾部的去除算法以及具有一定弯曲姿态的复杂猪体体尺测点坐标提取的算法,并利用Matlab2010软件实现了其算法。验证试验结果表明:通过背景减法和去除噪声算法可去除背景干扰,有效识别猪体信息;测点提取算法可准确提取自然姿态下猪的个体轮廓,识别其体尺测点,实现了猪体的体长、体宽等体尺量算的9个体尺测点的坐标提取,经验证,对猪体体长的实测值平均相对误差最小,其平均相对误差仅为0.92%;其次为腹部体宽,其平均相对误差为1.39%;而对猪体肩宽和臀宽的检测误差较大,平均相对误差分别为2.75%和3.03%。本研究可应用于猪体无应激量算体尺、估算猪体体质量,为开展福利养殖提供了一种新方法。

关 键 词:养殖  机器视觉  图像处理  包络分析  生猪  测点提取
收稿时间:2012/6/26 0:00:00
修稿时间:2012/12/26 0:00:00

Extraction algorithms and applications of pig body size measurement points based on computer vision
Liu Tonghai,Teng Guanghui,Fu Weisen and Li Zhuo.Extraction algorithms and applications of pig body size measurement points based on computer vision[J].Transactions of the Chinese Society of Agricultural Engineering,2013,29(2):161-168.
Authors:Liu Tonghai  Teng Guanghui  Fu Weisen and Li Zhuo
Institution:1(1.College of Water Resources and Civil Engineering,China Agricultural University,Beijing 100083,China;2.Department of Computer Science and Information Engineering,Tianjin Agricultural University,Tianjin 300384,China)
Abstract:Abstract: It is an essential task to obtain the pig's body size and its weight without stress in the animal welfare farming. In this paper, a new method is proposed which can be applied to calculate pig body width and body length with no stress, and further to estimate the pig body weight. First, an on-line camera as the image acquisition device was used to acquire the back image and the background image of the 120 days old Landrace sow in a local pig farm. The acquired image size is 704 pixels × 576 pixels in the pixel coordinate system. In light of the site conditions of pig house, the background information is removed via arithmetic operation based on gray process of the pig body image and the background image. And image noise is removed by the median filtering method, and detailed porcine somatic information is obtained. Then, the pig body image's segmentation threshold is determined using dynamic threshold method, and the binary image is acquired; After calculating the number and the area of connected regions, the other pigs which may exist in the imaging area get removed via maximum ordinate-area method. Finally, the individual pig contour is extracted through the Canny edge detection algorithm. Because of the interference of the pig head and tail regions with the body size extraction, the identification algorithm aiming at removing head and tail regions in the image is designed, and the data envelopment analysis is used in the algorithm, based on the distance between the body contour and the envelope line, the pig body contour with the head and tail removed is finally obtained. After that, with account of the traditional measuring positions of individual body size, the extraction algorithm for extracting the individual body size with a certain complex curvature is further designed by obtaining the coordinate values of measuring points. The algorithm stability and the extraction accuracy of the verification were tested using 9 different pig images. The result shows that the identification accuracy of pig body size measuring points is 100%, the detection accuracy of the pig body length is high, and the average relative error of the detection values and measured values is 0.92%; The average relative error of abdominal body width is 1.39%, and the average relative errors of shoulder width and hip width are 2.75% and 3.03%, respectively. Overall, the algorithm has a better detection effect for pig body size, and it is stable with better robustness.
Keywords:cultivation  computer vision  image processing  envelopment analysis  pig  measuring points extraction
本文献已被 CNKI 等数据库收录!
点击此处可从《农业工程学报》浏览原始摘要信息
点击此处可从《农业工程学报》下载免费的PDF全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号