ampy.utils

Module provides methods for reading/saving video data

ampy.utils.get_video(filename: str, begin_frame: int, end_frame: int, get_each: int) list

Returns a list with the frames of an input video

Parameters:
  • filename – the path

  • bots_number – number of bots in video

  • begin_frame – frame to begin the processing

  • end_frame – frame to end the processing

  • get_each – frames decimation frequency

Returns:

list with the frames of the input video

ampy.utils.save_video(filename: str, frames: list, framerate: int = 50) None
Saves a list with the frames of a video file
param filename:

name of an output file

param frames:

list of the frames from the get_video method output

param framerate:

frames per second