Abstract
To detect animal objects under complicated background, a new approach is proposed to detect animal objects using shape feature. At first, a model is built by devising Canny hierarchical structure, then candidate fragments of the back and buttock are extracted using Generalizing Hough Transform, at last the matching task is accomplished based on restricting relationship of relative positions between the back and buttock. The experiment result shows that our approach achieves a promising detection rate under posture variations, scale variations and background clutter.
Introduction
Animal detection in natural environments is a significant challenge in computer vision due to the non-rigid nature of animal bodies and high degrees of background clutter. Unlike rigid objects such as vehicles or buildings, animals frequently change posture, making static template matching ineffective. While machine learning approaches offer robustness, they often require extensive datasets and can struggle with precise localization. This paper proposes a shape-based detection pipeline focusing on relatively stable anatomical features—the back and buttock—to achieve high-precision detection in complex scenes.
Methodology
The proposed detection framework consists of a three-stage pipeline designed to filter noise and accurately localize animal shapes by leveraging geometric relationships.
1. Canny Hierarchical Structure
Standard edge detection methods like Canny often face a trade-off: high thresholds miss critical contours, while low thresholds introduce excessive noise from background elements like grass or shadows. The authors address this using a hierarchical approach. They extract edges across multiple thresholds (ranging from 0.9 down to 0.2). High-confidence edges from the highest threshold serve as "seeds." A connected algorithm then "grows" these seeds using data from lower thresholds, effectively reconstructing complete animal contours while suppressing background clutter.
2. Weighted Generalized Hough Transform (GHT)
To identify candidate body parts, the system utilizes a weighted GHT. In a standard GHT, all edge points contribute equally to a vote for the object's center, which can lead to false positives in complex scenes. To improve specificity, the authors assign higher weights ($k > 1$) to line segments that align with predefined templates. This weighting scheme ensures that true animal features stand out more prominently in the accumulator space.
3. Geometric Constraint Matching
The final stage involves validating the spatial relationship between detected "back" and "buttock" fragments. Rather than treating detections in isolation, the algorithm models the anatomical distance and orientation between these parts using a Gaussian probability distribution.
By enforcing these geometric constraints, the system can distinguish between a valid animal posture and random background noise that might coincidentally resemble individual body parts. This "flexible but firm" approach allows for variations in horse anatomy while rejecting physically impossible configurations.
Experimental Results
The approach was evaluated using the INRIA Horses Database, which contains 170 images of horses in diverse environments, scales, and postures. A subset of 70 images with complete shape fragments was used for detailed matching analysis.
Following the PASCAL evaluation standard (requiring >50% overlap with ground truth), the proposed method achieved a detection rate of 88.6%, significantly outperforming the well-known Ferrari shape-based method, which reached 80.8%. These results demonstrate the effectiveness of hierarchical edge extraction and part-based geometric constraints in improving localization accuracy and reducing false positives.
Conclusion and Future Work
The "seed-based" hierarchical strategy effectively resolves the threshold selection dilemma in edge detection, providing a cleaner input for the GHT. By focusing on stable anatomical parts and applying probabilistic geometric constraints, the system maintains robustness across various animal postures.
Future research will focus on reducing the computational overhead associated with multi-layer Canny processing and extending the model to other species by defining new stable fragments and calculating the corresponding geometric constraints.
Summary updated