RMS
RMS copied to clipboard
Introduce Sensor scan_rate
Introduce configurable sensor scan_rate for improved rolling shutter correction.
This PR enhances our rolling shutter correction by introducing a configurable scan_rate parameter:
-
Add
scan_rateto config:- Allow both fractional (e.g., "1/30") and decimal (e.g., "0.0333333") inputs in seconds
-
Update rolling shutter correction function:
- Modify
correctRollingShutterTemporalto use the configuredscan_rate:
- Modify
# 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