Spaces:
Sleeping
Sleeping
Download src/utils/__init__.py from andytaylor-smg/cfb40: direct link, hf CLI and curl.
- Browser
- Download file 949 Bytes
-
https://huggingface.co/spaces/andytaylor-smg/cfb40/resolve/main/src/utils/__init__.py
- Command line
-
hf download hf://spaces/andytaylor-smg/cfb40/src/utils/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/andytaylor-smg/cfb40/resolve/main/src/utils/__init__.py
949 Bytes
| """ | |
| 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", | |
| ] | |