Abstract
Standard feature-based object detection algorithms often struggle when target objects undergo non-rigid deformations, such as bending or folding. This paper introduces a novel detection pipeline that utilizes Delaunay triangulation to model local structural relationships between features. By iteratively growing a mesh from initial seed matches and applying rigorous geometric and photometric consistency checks, the proposed method can accurately detect and reconstruct smoothly distorted objects. Experimental results demonstrate significant improvements over traditional RANSAC-based homography methods, particularly in scenarios involving complex non-planar surfaces.
Introduction
The standard pipeline for feature-based object detection—extracting keypoints (such as SIFT), matching them, and using RANSAC to estimate a homography matrix—is highly effective for rigid, planar objects. However, a global homography assumes the object is perfectly flat. In real-world applications, such as identifying crumpled packaging, bent book covers, or curved labels on bottles, this assumption is frequently violated. This research addresses the challenge of detecting and identifying multiple instances of a known 2D template in a scene when those instances undergo smooth, non-rigid 3D deformations.
Methodology
Instead of attempting to fit a global transformation model to potentially non-planar data, the authors propose a local, iterative region-growing approach. This method effectively models the object as a flexible grid of rigid triangles.
1. Mesh Construction and Seed Selection
The process begins by extracting SIFT keypoints from the template image. A Delaunay triangulation is then constructed over these points to create a 2D mesh that captures the local structural relationships between features. To initiate detection in a scene, the algorithm searches for "seed" triangles—initial matches between the template and scene keypoints. To account for potential missing features in the scene, the algorithm employs a redundant, overlapping triangulation strategy.
2. Iterative Mesh Expansion and Consistency
Starting from a seed, the algorithm "crawls" across the object by examining adjacent triangles in the template's mesh and finding their counterparts in the scene. This expansion is governed by several consistency checks designed to prevent erroneous matches from corrupting the growth:
- Geometric Integrity: Ensures the mesh remains topologically sound and prevents self-intersections.
- Consistency Scores: Evaluates matches based on descriptor similarity, relative position, and relative orientation.
- Scale-Ratio Consistency: This novel metric checks if the mutual scale ratios between keypoints in the template match those in the scene. This naturally prefers smaller, denser triangles, which are better suited for approximating curved 3D surfaces under perspective distortion.
3. Instance Identification and Photometric Filtering
To handle multiple object instances, the algorithm manages multiple seeds using a kd-tree. Once an object's mesh is fully expanded, Thin Plate Splines (TPS) are used to "unwarp" the detected scene object back to a flat rectangle. A pixel-wise photometric comparison against the original template is then used to filter out false positives and duplicate detections, ensuring high-fidelity identification.
Experimental Evaluation
The proposed method was evaluated against a standard RANSAC-based baseline using a custom dataset captured with a smartphone camera (Huawei P8, resized to 1000x750). The dataset featured a "Golia Frutta C" candy package across three scenarios:
- Undistorted Scenes: Both the proposed method and the RANSAC baseline successfully detected 100% of the objects. RANSAC showed a slight advantage in Intersection over Union (IoU) because it projects the entire bounding box, whereas the proposed method's boundary is defined by the convex hull of detected keypoints.
- Single Distorted Object: The proposed method significantly outperformed the baseline, achieving IoU scores of ~0.80–0.88 compared to RANSAC's ~0.48–0.79.
- Multiple Distorted Objects: The algorithm successfully identified all instances. While the IoU was occasionally lower than RANSAC in wide landscape shots due to fewer keypoints being extracted, the photometric reconstruction error remained consistently lower, indicating a much more accurate mapping of the surface deformation.
Conclusion and Future Work
By enforcing local structural constraints through iterative triangulation growth, this method provides a robust solution for detecting non-planar objects where global models fail. While the current implementation relies on SIFT and empirical thresholds, future work will focus on integrating modern deep-learning-based feature detectors and automating weight optimization to handle more extreme distortions and improve computational efficiency.
Summary updated