Skip to content

msight_core.nodes.source_downloaded_image_player

msight_core.nodes.source_downloaded_image_player

DownloadedImagePlayerSourceNode

Bases: SourceNode

A source node that publishes images from downloaded directory using msight_download_data

get_timestamp(filename)

Extract datetime object from filename.

get_all_timestamps(folder_path)

Get all timestamps from filenames in a folder.

binary_search_closest(sorted_list, target)

Find the index of the closest value to the target in a sorted list.

find_closest_image(target_timestamp, sorted_timestamps)

Find the closest image in time given sorted timestamps.