(text: str, color="")
| 6 | |
| 7 | |
| 8 | def print_with_color(text: str, color=""): |
| 9 | if color == "red": |
| 10 | print(Fore.RED + text) |
| 11 | elif color == "green": |
| 12 | print(Fore.GREEN + text) |
| 13 | elif color == "yellow": |
| 14 | print(Fore.YELLOW + text) |
| 15 | elif color == "blue": |
| 16 | print(Fore.BLUE + text) |
| 17 | elif color == "magenta": |
| 18 | print(Fore.MAGENTA + text) |
| 19 | elif color == "cyan": |
| 20 | print(Fore.CYAN + text) |
| 21 | elif color == "white": |
| 22 | print(Fore.WHITE + text) |
| 23 | elif color == "black": |
| 24 | print(Fore.BLACK + text) |
| 25 | else: |
| 26 | print(text) |
| 27 | print(Style.RESET_ALL) |
| 28 | |
| 29 | |
| 30 | def draw_bbox_multi(img_path, output_path, elem_list, record_mode=False, dark_mode=False): |
no outgoing calls
no test coverage detected