Skip to main content

Radar data validation and analysis tool

Project description

Valdar

Valdar is a Mobileye radar data validation and analysis tool designed to process and assess radar logs for quality metrics


📦 Installation

Install from PyPI:

pip install valdar

🚀 Usage

from valdar import RadarAnalyzer

analyzer = RadarAnalyzer("/path/to/pext_dir")  # must include 'bml_LowLevelCRF_frame' pext
status = analyzer.evaluate()

# Access results
print("LRR status:", status.lrr_status)
print("NR status:", status.nr_status)
print("LRR validity", status.valid_lrr)
print("NR validity", status.valid_nr)

# The `RadarAnalyzer` also provides functionality to analyze radar coverage:
coverage = analyzer.analyze_coverage() # pext directory must include 'SS_vcl' and 'appLevelInput' pext

# Access coverage results
print("Overall radar coverage:", coverage["overall_coverage"])
print("CIPV radar coverage:", coverage["cipv_coverage"])

Requirements

  • Python 3.7+

Output Structure

RadarAnalyzer.evaluate()

The RadarStatus object returned by RadarAnalyzer.evaluate() contains a structured summary of radar health metrics:

{
  "valid_lrr": bool | None,               # True if LRR data passes all checks,
                                          # False if any check fails,
                                          # None if data is missing or not applicable

  "valid_nr": bool | None,                # Same as above, but for NR data

  "lrr_status": {
    "drop_rate": float,                  # Ratio of dropped LRR frames (0.0 to 1.0)
    "valid_time_sync_rate": float,       # Proportion of LRR frames with synchronized timestamps
    "valid_calibration_rate": float,     # Proportion of LRR frames marked as calibrated
    "high_latency_rate": float,          # Proportion of LRR frames with latency > 0.2 seconds
  },

  "nr_status": {
    "drop_rate": float,                  # Ratio of dropped NR frames across all relevant sensors
    "valid_time_sync_rate": float,       # Proportion of NR frames with all timestamps synchronized
    "valid_calibration_rate": float,     # Proportion of NR frames where all sensors are calibrated
    "high_latency_rate": float,          # Proportion of NR frames with latency > 0.2 seconds on any sensor
  }
}

Each field can be None if the corresponding data column is missing in the input. Top-level valid_lrr and valid_nr fields summarize whether the data is considered "valid" based on configurable thresholds:

  • drop_rate < 0.01
  • valid_time_sync_rate > 0.95
  • valid_calibration_rate > 0.95
  • high_latency_rate < 0.01 Note: For NR metrics, a failure is counted if any of the four NR sensors fails the corresponding check for a frame.

RadarAnalyzer.analyze_coverage()

The RadarAnalyzer.analyze_coverage() method requires:

  • SS_vcl pext data for overall coverage calculation
  • appLevelInput pext data for CIPV-specific coverage calculation

The method returns a dictionary with the following metrics:

{
  "overall_coverage": float,  # Proportion of fused vehicle targets of the total number of SS targets
  
  "cipv_coverage": float      # Proportion of fused CIPV targets of the total number of SS CIPV targets
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

valdar-1.1.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

valdar-1.1.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file valdar-1.1.0.tar.gz.

File metadata

  • Download URL: valdar-1.1.0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.13

File hashes

Hashes for valdar-1.1.0.tar.gz
Algorithm Hash digest
SHA256 a5136318fd1384caee721c7f9dd49ad9c2e4a7b524d0f0afcdf38f471bf2c9c1
MD5 ddc3ec24b1326c1b9615023275f0b386
BLAKE2b-256 c1f21bb4fec13d6268c13cd08936b206ff79bd86abf993c5b594b6e807abc289

See more details on using hashes here.

File details

Details for the file valdar-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: valdar-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.13

File hashes

Hashes for valdar-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e5b0ee7f10d7217dc55b55a685fce216e42ff188c6bc046fc4e4394b4fff98df
MD5 e3aa121a035dfb7e99dfb361d06a803b
BLAKE2b-256 3d29ba7d8f62702fd7f25fa358ea979c4a619ccf89d9bd905d62ced723f96129

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page