heartcv.identify_frequencies

heartcv.identify_frequencies(video, epts, rotate=True, indices=(None, None))[source]

Launch a user interface to identify frequencies of interest in the supplied energy proxy traits.

Parameters
  • video (vuba.Video) – Video instance of a desired footage.

  • epts (ndarray) – Energy proxy traits produced using epts.

  • rotate (bool) – Whether to fit a rotated bounding box to the largest shape detected in the EPT heatmap. If False, a non-rotated bounding box will be fit. Default is True.

  • indices (tuple) – Frame indices to limit GUI to, especially useful when analysing long sequences of footage. First index will always be interpreted as the minimum index and the second as the maximum index. If None is specified to either limit, then that limit will be ignored. Default is for no limits, i.e. (None, None).

Returns

  • bbox (ndarray or tuple) – Bounding box array or tuple describing the coordinates or dimensions over which the box has been fit respectively.

  • frequency (int or float) – Last selected frequency in user interface.

  • gui (vuba.VideoGUI or None) – If run is False then an instance of VideoGUI will be returned.

See also

mpx_grid, epts, spectral_map