|
RoboCarts
|
Functions | |
| def | confirm_line (event, x, y, flags, finish_endpoints) |
| def | pick_point (event, x, y, flags, params) |
| def | select_finish_line (image_src) |
Variables | |
| saved_endpoints | |
| endpoints | |
@file finish_selector.py @brief This file contains functions for manual finish line selection
| def finish_selector.confirm_line | ( | event, | |
| x, | |||
| y, | |||
| flags, | |||
| finish_endpoints | |||
| ) |
Mouse callback function Left-clicking in the image with the highlighted finish line adds the endpoints to the global list Right-clicking in the image with the highlited finish line deletes current endpoints from the global list :param flags: check flags :param y: mouse y :param x: mouse x :param event: click event :param finish_endpoints: finish endpoints :return: -
| def finish_selector.pick_point | ( | event, | |
| x, | |||
| y, | |||
| flags, | |||
| params | |||
| ) |
Mouse callback function With the left mouse click in the image selects the finish line endpoints :param params: finish endpoints and a frame :param flags: check flags :param event: click event :param x: mouse x :param y: mouse y :return: -
| def finish_selector.select_finish_line | ( | image_src | ) |
Subroutine for locating the finish line :param image_src: source image :return: saved color ranges
1.8.13