Skip to content

πŸ”„ De-duplication

Various Prolix analyzers uses a system for de-duplicating features, based on the same Locate Object library. Here's how this works.

Input Data

The process requires:

  • Geolocated images with appropriate metadata (e.g., camera location, azimuth, field of view).
  • Annotations of searched features, with this metadata:
  • Bounding box coordinates (bbox_xmin, bbox_ymin, bbox_xmax, bbox_ymax).
  • Feature type (for example, traffic sign code).
  • Confidence score for the detection.

Data processing

The original annotations data goes through many steps in order to be de-duplicated.

Summary of data processing

1 - Generate Bearing Lines

  • A bearing line is a ray cast from the camera in the direction of a detected feature.
  • It represents the uncertainty in the feature distance from the camera.
  • The line’s length is determined by the minimum and maximum plausible distance of the feature, based on its apparent size in the image.

2 - Find Intersection Points

  • Compute crossing points of two bearing lines from different images.
  • This represents a candidate location for a feature.
  • Reliability depends on:
  • The angle between the lines (small angles = unstable location).
  • The size discrepancy between the two lines (large discrepancies = likely different features).
  • Before clustering, these intersections are filtered:
  • Angle between lines is not too small or too wide (accurate viewing cone).
  • Features are of similar size (not to confuse with another, more distant one).

3 - Clustering Intersection Points

  • DBSCAN groups intersection points that are close-enough in space.
  • Recursive clustering refines the groups by tightening the distance threshold.
  • Conflict resolution ensures each bearing line is assigned to only one feature.

4 - Handling Leftover Features

  • Identify unused bearing lines (lines not part of any cluster from the intersection step).
  • Cluster these lines by proximity using DBSCAN (same parameters as above).
  • For each leftover cluster:
  • Use the start point of the bearing line as the feature location (since no intersection exists).
  • Estimate the feature's size and direction from the single bearing line.
  • Filter by confidence: discard clusters with a maximum confidence score below 0.7.

Output Results

The generated dataset is the combination of both clustered intersection points and clustered leftover features. The strategy is to minimize missing feature in output.

Several GeoJSON files are generated, for finer debugging, depending on each analyzer:

File Description
1_intersections.geojson All intersection points (before filtering)
2_intersections_filtered.geojson Reliable intersection points (after filtering)
3_clusters.geojson Final feature clusters from intersections
4_leftovers.geojson Feature clusters from leftover bearing lines