|
RoboCarts
|
Public Member Functions | |
| def | __init__ (self, name, boundary) |
| def | update_contour (self, new_contour) |
| def | check_if_crossed_line (self, finish_p1, finish_p2, finish_time) |
| def | update_times (self, finish_time) |
Static Public Member Functions | |
| def | get_centroid (new_contour) |
Public Attributes | |
| name | |
| boundary | |
| current_contour | |
| rectangle | |
| centroid | |
| centroids | |
| backdrive | |
| can_increase_backdrive | |
| disappeared_from_scene | |
| out_of_scene | |
| lap_times | |
| rounds | |
Main class of the Color algorithm representing both unique colors and cars on the frame
| def ca_classes.ColorContour.check_if_crossed_line | ( | self, | |
| finish_p1, | |||
| finish_p2, | |||
| finish_time | |||
| ) |
Checks if the ColorContour instance crossed the finish line and updates time accordingly :param finish_p1: finish point 1 :param finish_p2: finish point 2 :param finish_time: finish time in secs :return: check flag
|
static |
Computes the centroid location from a contour :param new_contour: a contour of the ColorContour instance :return : centroid coordinates
| def ca_classes.ColorContour.update_contour | ( | self, | |
| new_contour | |||
| ) |
Updates information about ColorContour's position :param new_contour: contour on the new frame :return: -
| def ca_classes.ColorContour.update_times | ( | self, | |
| finish_time | |||
| ) |
Function for time updating :param finish_time: finish time in secs :return: -
1.8.13