SDK Calibration Configs¶
Structure containing the configuration to initialize a BlinkingDotsGridDetectorAlgorithm.
Determines the output periodicity of the algorithm. The callback will be called every processing_timestep microseconds. If set to 0, the execution will be synchronous, meaning that the callback will always be called once at the end of each call to BlinkingDotsGridDetectorAlgorithm::process_events.
Number of horizontal lines of points in the grid.
Number of vertical lines of points in the grid.
Size of a square of the grid.
Special frequency, frequency of the first row of the grid, in Hz.
Normal frequency, in Hz.
For the frequency estimation, the maximum difference between two successive periods to be considered the same (in us).
Minimum number of successive stable periods to validate a frequency.
Filter constant for the position of the center of the cluster. This value must be > 0 and <=1. Values closer to 1 produce a more reactive, but noisier position estimation.
Maximum difference to add a frequency event to a cluster, in Hz.
Minimum size of a frequency cluster to be used (in pixels). For a LED grid, larger values can help filtering small clusters produced by reflections, but might prevent detection when the leds are far away.
Structure to instantiate a Blinking Detector configuration.
accumulation_time: Window of time during which events are considered to detect if a pixel is “blinking”
min_num_blinking_pixels: Minimum number of pixels needed to be detected before outputting a frame
blinking_pixels_ratios_on: The acceptable ratio of pixels that received only positive events over the number of pixels that received both during the accumulation window
blinking_pixels_ratios_off: The acceptable ratio of pixels that received only negative events over the number of pixels that received both during the accumulation window
median_blur_radius: Radius of the median blur applied on the mask of positive and negative pixels. a negative value disables the median blur. (diameter = 1 + 2*radius)
Diameter of the median blur applied on the mask of positive and negative pixels (diameter = 1 + 2*radius) a zero value disables the median blur.
Structure to instantiate a DftHighFreqScorerAlgorithm configuration.
DftHighFreqScorerAlgorithmConfig(timestamp refresh_period_us = 1e4, bool use_inverted_gray = false, bool speed_up = false, double high_pass_filter_dft_rows_ratio = 1.0 / 8)¶
refresh_period_us: Time period between two consecutive process (Skip the blinking frames that are too close in time to the last one processed)
use_inverted_gray: Invert the graylevels so that white becomes black (and conversely) If true, map linearly 0 to 255 and 255 to 0; if false, keep the pixel intensity.
speed_up: Skip the process if the frame hasn’t changed
high_pass_filter_dft_rows_ratio: Ratio of the image’s height determining the radius for the High Pass Filter on the DFT (Ex: if ratio = 1/8 and (width,height) = (640,480), then radius = 480/8 = 60 for the filter)