We propose an use of UAV images and videos to automatically recognize and count animals in extensive areas.
Eight computer vision models are currently in this repository:
- Two models for cow recognition from UAV images in nadir position.
- Six models for sheep recognition from UAV videos.
An application script using the sheep detection model is also available for counting sheep in the video.
More details on models section.
The repository folders are structured as follow:
- data: some example videos and images to use application scripts. You can find on Zenodo others sheep video and cow images that you could download and add to data repository to test models and application scripts.
- models: models developed for aerial animals detection.
- appplication: application scripts using sheep models to count animals.
- src: scripts to simplify data handling and one script for fine-tuning yolo models.
- platform.json: organized information about the models.
The models developed are the following:
The model has been trained with YOLOv8 and is capable of detecting cow at a height of 100 meters from large images (resolution > 3000x4000 px).
The model has been trained with YOLOv8 and is able to detect cows from large images divided into several small images.
The model has been trained with YOLOv8 and is able to detect sheep at a height of 5 to 10 meters.
The model has been trained with YOLOv8 and is able to detect sheep at a height of 5 to 10 meters. The dataset used to train the model is different from the previous one.
The model has been trained with YOLOv8 and is able to detect sheep at a height of 5 to 10 meters. The dataset used to train the model is the same than first version but with different training parameters.
Fine-tuning of version 3 model using new annotated images acquired in real farm environments under diverse conditions (variations in breed, background, lighting, weather, and animal density).
Gold standard of our models in sheep detection
The model has been trained with the lightest version of YOLOv11 and is capable of detecting sheep at a height of 5 to 10 meters. This model detects animals faster than other versions of yolo11 and will be more interesting to deploy.
The model has been trained with a light version of YOLOv11 and is capable of detecting sheep at a height of 5 to 10 meters. This model combines fast execution compared to yolov11m and good detection of animals compared to yolov11n.
The script uses one of the sheep detection models, then tracks and counts sheep crossing a field on the video.
This folder contains two separate deployment tools for the sheep counting application:
- End-User Deployment: Designed for end users, this tool provides a simple and ready-to-use setup for running the application.
- Researcher Deployment: Aimed at researchers, this tool makes it easy to set up local videos of sheep counting for testing, development, and customization.
These two deployment modes ensure both ease of use for non-technical users and flexibility for researchers.
- Louise Helary - Institut de l'Elevage (IDELE) - Louise Helary
- Aristide Lauront - Institut de l'Elevage (IDELE) - Aristide Lauront
- Madeline Le Pors - Institut de l'Elevage (IDELE) - Madeline Le Pors
This project is funded by the European Union, grant ID 101060643.

