Jump to Main Content
Development of a real-time computer vision system for tracking loose-housed pigs
- Ahrendt, Peter, Gregersen, Torben, Karstoft, Henrik
- Computers and electronics in agriculture 2011 v.76 no.2 pp. 169-174
- algorithms, animal identification, computer software, computer vision, farmers, livestock breeding, models, swine
- Changes in regulations for livestock animals will in the near future call for loose-house pig breeding systems. These new systems will increase the workload for the farmers, as location and identification of animals will require more time than before. This paper presents a real-time computer vision system for tracking of pigs in loose-housed stables. The system will ease the workload for farmers in identification and locating individual animals. The system consists of a camera and a PC. The PC runs a tracking-algorithm, estimating the positions and identities of the pigs. The tracking algorithm operates in 2 steps. The first step builds up support maps, pointing to preliminary pig segments in each video frame. In the second step the support map segments are used to build up a 5D-Gaussian model of the individual pigs (i.e. position and shape). The system has software correction for fisheye distortion coming from the camera lens. The fisheye lens allows the camera to monitor a much larger area in the stable. The algorithms are developed in MatLab, implemented in C and runs in real-time. Experiments in the lab and in the stable demonstrate the robustness of the system. The system can track at least 3 pigs over a longer time span (more than 8min) without loosing track and identity of the individual pigs in a realistic experiment.