offlinemot.core.FirstFrame

offlinemot.core.FirstFrame(frame, config)[source]

initilize the detector and return the objects in the first frame if they fall within the image borders

Parameters
  • frame (numpy array) – The first frame of the video

  • config (config instance) – A class instance of all the configuration parameters

Returns

a tuple of a list of the new detected traffic objects as the first element and the detector instance of YOLOv4 detector as the second element.

Return type

tuple