RMS icon indicating copy to clipboard operation
RMS copied to clipboard

Introduce Sensor scan_rate

Open Cybis320 opened this issue 1 year ago • 0 comments

Introduce configurable sensor scan_rate for improved rolling shutter correction.

This PR enhances our rolling shutter correction by introducing a configurable scan_rate parameter:

  1. Add scan_rate to config:

    • Allow both fractional (e.g., "1/30") and decimal (e.g., "0.0333333") inputs in seconds
  2. Update rolling shutter correction function:

    • Modify correctRollingShutterTemporal to use the configured scan_rate:
# Compute the time offset in fractional frames
delta_t = (fps*scan_rate)*(y_centr/n_rows)

# Compute the corrected timestamp
fr_corrected = frame + delta_t

Cybis320 avatar Sep 30 '24 00:09 Cybis320