Spaces:
Sleeping
Sleeping
| """ | |
| Shared utility modules for the cfb40 project. | |
| This package contains utilities that are used across multiple modules | |
| to avoid code duplication and circular imports. | |
| """ | |
| from .color import detect_red_digits, normalize_to_grayscale | |
| from .regions import ( | |
| extract_left_region, | |
| extract_right_region, | |
| extract_center_region, | |
| extract_far_left_region, | |
| preprocess_playclock_region, | |
| ) | |
| from .frame_result import create_frame_result | |
| from .logging import ( | |
| log_flag_plays, | |
| log_play_complete, | |
| log_play_created, | |
| ) | |
| __all__ = [ | |
| # Color utilities | |
| "detect_red_digits", | |
| "normalize_to_grayscale", | |
| # Region extraction | |
| "extract_left_region", | |
| "extract_right_region", | |
| "extract_center_region", | |
| "extract_far_left_region", | |
| "preprocess_playclock_region", | |
| # Frame result factory | |
| "create_frame_result", | |
| # Logging helpers | |
| "log_flag_plays", | |
| "log_play_complete", | |
| "log_play_created", | |
| ] | |