| 注册
首页|期刊导航|农业工程学报|基于机器视觉的猪体体尺测点提取算法与应用

基于机器视觉的猪体体尺测点提取算法与应用

刘同海 滕光辉 付为森 李卓

农业工程学报Issue(2):161-168,8.
农业工程学报Issue(2):161-168,8.DOI:10.3969/j.issn.1002-6819.2013.02.023

基于机器视觉的猪体体尺测点提取算法与应用

Extraction algorithms and applications of pig body size measurement points based on computer vision

刘同海 1滕光辉 2付为森 1李卓1

作者信息

  • 1. 中国农业大学水利与土木工程学院,北京 100083
  • 2. 天津农学院计算机科学与信息工程系,天津 300384
  • 折叠

摘要

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.

关键词

养殖/机器视觉/图像处理/包络分析/生猪/测点提取

Key words

cultivation/computer vision/image processing/envelopment analysis/pig/measuring points extraction

分类

信息技术与安全科学

引用本文复制引用

刘同海,滕光辉,付为森,李卓..基于机器视觉的猪体体尺测点提取算法与应用[J].农业工程学报,2013,(2):161-168,8.

基金项目

国家公益性行业(农业)科研专项(201003011) (农业)

国家星火计划项目(2012GA610027) (2012GA610027)

天津市农业科技成果转化与推广项目(2011047) (2011047)

农业工程学报

OA北大核心CSCDCSTPCD

1002-6819

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