FusedObject#

class rapidtools.processing.street_fusion.FusedObject(x: float, y: float, cov: ~numpy.ndarray | None, members: list[~rapidtools.core.observation.Observation], footprint: list[tuple[float, float]], area_m2: float, length_m: float, width_m: float, parallax_deg: float, days: list[str] = <factory>, localization: str = 'triangulated', rms_m: float | None = None, sources: str | None = None, aerial_offset_m: float | None = None, vote_share: float | None = None, heading_deg: float | None = None)[source]#

Bases: object

One object found by occupancy fusion.

Variables:
  • x (float) – East coordinate of the object in the local meter frame.

  • y (float) – North coordinate.

  • cov (numpy.ndarray | None) – 2 x 2 position covariance in square meters, or None when the position is the blob center rather than an intersection.

  • members (list[Observation]) – The sightings that show the object.

  • footprint (list[tuple[float, float]]) – Outline of the object on the ground, as (x, y) vertices in the local meter frame.

  • area_m2 (float) – Area of the footprint.

  • length_m (float) – Long side of the footprint’s bounding rectangle.

  • width_m (float) – Short side of the footprint’s bounding rectangle.

  • heading_deg (float | None) – Direction of the long side in degrees clockwise from north (0 to 180), when the footprint is the box fitted to the edges of the sightings; None when it is the outline of the object’s cells or of the overhead image.

  • parallax_deg (float) – Largest spread among the sightings’ bearings.

  • days (list[str]) – Survey days the object was seen on (none for an object only the overhead image shows).

  • localization (str) – 'triangulated' (bearings intersected), 'fused' (center of the occupied cells) or 'aerial' (center of the overhead outline).

  • rms_m (float | None) – Root-mean-square distance between the position and the sightings’ bearing lines, when triangulated.

  • sources (str | None) – With an overhead image, what showed the object: 'both', 'street' or 'aerial'; None without one.

  • aerial_offset_m (float | None) – Distance between the triangulated position and the center of the overhead outline, when both exist.

  • vote_share (float | None) – Largest share of “occupied” among the range-weighted votes of the street frames on the object’s cells: near 1 when every frame in range outlined it, under the fusion’s occupancy_threshold for an object kept because many frames agree on it although most in range show nothing (hidden from part of the street, or often missed by the detector). None for an object only the overhead image shows.

property n_images: int#

Number of distinct frames that show the object.

property sigma_m: float#

One-sigma position uncertainty along the worst direction.