Method of automatically measuring body size of pigs based on stereo-infrared multi-source data
Author:
Affiliation:

1.College of Engineering, Huazhong Agricultural University, Wuhan 430070, China;2.Ministry of Agriculture and Rural Affairs Key Laboratory of Smart Farming for Agricultural Animals, Wuhan 430070, China;3.College of Information, Huazhong Agricultural University, Wuhan 430070, China

Clc Number:

S818

  • Article
  • |
  • Figures
  • |
  • Metrics
  • |
  • Reference
  • |
  • Related
  • |
  • Cited by
  • | |
  • Comments
    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 segment 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 average relative error of 2.49% and an average absolute error of 1.42 cm. It is indicated that the algorithm proposed meets the requirements of accuracy for measuring the body size of pigs. It will provide a feasible solution for continuously and automatically measuring the body size of pigs.

    Fig.1 Platform of pig image acquisition
    Fig.2 Work flow chart of pig images acquisition
    Fig.3 Infrared and stereo images of pigs
    Fig.4 Pig target extraction with infrared image
    Fig.5 Pig head tail segmentation
    Fig.6 Analysis of head and tail convex hull
    Fig.7 Analysis of convex hull of pig head in non ideal posture
    Fig.8 Schematic diagram of body scale measurement
    Fig.9 Stereo camera calibration and depth information computation
    Fig.10 Prospect extraction results of pigs
    Fig.11 Body scale variation diagram
    Fig.12 Boxplot of the average relative error
    Table 1 Average relative error of body size measuremen
    Reference
    Related
    Cited by
Get Citation

周明彦,黎煊,祝志慧,陈萌放,徐迪红. Method of automatically measuring body size of pigs based on stereo-infrared multi-source data[J]. Jorunal of Huazhong Agricultural University,2025,44(2):9-16.

Copy
Share
Article Metrics
  • Abstract:49
  • PDF: 101
  • HTML: 0
  • Cited by: 0
History
  • Received:November 29,2024
  • Online: April 02,2025
Article QR Code