py123d_detection.core.lidar_points

Per-box lidar point counts from a standalone cache, for logs that record none.

A box with no lidar return is an object no sensor saw, usually fully occluded, and BoxFilters drops it. That needs a count, and some 123D logs do not carry one: every Waymo perception box reads -1, which keeps them all. The thesis counted the points itself and cached them next to the logs, one table per log:

<cache_root>/<split>/<log_name>/num_lidar_points.arrow
    sync_uuid         binary(16)      the log's sync frame
    track_tokens      list<string>    the boxes of that frame
    num_lidar_points  list<int>       their point counts

A frame’s sync UUID is found through the log’s own sync.arrow: row initial_idx + iteration * stride of the scene. Where the cache has no entry, the log’s own count stands.

Classes

LidarPointCounts(cache_root, logs_root)

Reads a num-lidar-points cache laid out like the 123D logs/ directory.

class py123d_detection.core.lidar_points.LidarPointCounts(cache_root, logs_root)[source]

Bases: object

Reads a num-lidar-points cache laid out like the 123D logs/ directory.

Parameters:
  • cache_root (Union[str, Path]) – The cache’s root, holding one directory per split.

  • logs_root (Union[str, Path]) – The 123D logs/ directory the cache was computed from.

for_frame(scene, iteration)[source]

{track_token: count} for one frame; empty if the cache has nothing for it.

Return type:

Dict[str, int]