RoboCarts
Functions
report Namespace Reference

Functions

def save_race_report (cars, folder, alg_type, race_num, general_times=None)
 
def save_finish_photo (finish_frame, tracker, folder, finish_count, frame_num, finish_time, alg_type, race_num, car_instance=None)
 

Detailed Description

@file report.py
@brief This file contains functions for creating the final report and finish photos

Function Documentation

◆ save_finish_photo()

def report.save_finish_photo (   finish_frame,
  tracker,
  folder,
  finish_count,
  frame_num,
  finish_time,
  alg_type,
  race_num,
  car_instance = None 
)
Saves frame with a finishing car
:param finish_time: raw finish time
:param finish_frame: frame with a finishing car
:param tracker: Blob or ColorContour instance of the finishing car
:param folder: path to a folder where the finish photos will be saved
:param finish_count: number of a finish
:param frame_num: number of a frame
:param alg_type: type of the algorithm - general/color
:param race_num: number of the race
:param car_instance: instance of corresponding Car (for GTA)
:return: -

◆ save_race_report()

def report.save_race_report (   cars,
  folder,
  alg_type,
  race_num,
  general_times = None 
)
Saves the race report to a text file
:param cars: list of Car or ColorContour instance
:param folder: path to a folder where the file will be saved
:param alg_type: type of the algorithm - general/color
:param race_num: number of the race
:param general_times: raw times of finish crossings (for GTA)
:return: -