pysted.utils.add_event
- pysted.utils.add_event(file, start_frame, end_frame, start_row, end_row, start_col, end_col)
Function that allows a user to easily store an event in a file, which can later be read with the event_reader func.
- Parameters:
file – File to write the dict to. The goal is to use 1 text file to which we will write all the vents for 1 video.
start_frame – Frame number for the start of the event
start_row – Frame number for the end of the event
start_col – Starting column for the left of the event
end_frame – Ending column for the right of the event
end_row – Starting row for the top of the event
end_col – Ending row for the bottom of the event