Spaces:
Sleeping
Sleeping
| """ | |
| UI module for interactive region selection. | |
| This module provides tools for interactively selecting regions in video frames, | |
| including scorebug, play clock, FLAG indicator, and timeout indicator regions. | |
| """ | |
| # Models | |
| from .models import BBox, SelectionState, SelectionViewConfig | |
| # Selector | |
| from .selector import KeyHandler, RegionSelector | |
| # Sessions | |
| from .sessions import ( | |
| FlagRegionSelectionSession, | |
| InteractiveSelectionSession, | |
| PlayClockSelectionSession, | |
| ScorebugSelectionSession, | |
| TimeoutSelectionSession, | |
| ) | |
| # Public API | |
| from .api import ( | |
| extract_sample_frames_for_selection, | |
| get_video_path_from_user, | |
| print_banner, | |
| select_flag_region, | |
| select_playclock_region, | |
| select_scorebug_region, | |
| select_timeout_region, | |
| ) | |
| __all__ = [ | |
| # Models | |
| "BBox", | |
| "SelectionState", | |
| "SelectionViewConfig", | |
| # Selector | |
| "KeyHandler", | |
| "RegionSelector", | |
| # Sessions | |
| "FlagRegionSelectionSession", | |
| "InteractiveSelectionSession", | |
| "PlayClockSelectionSession", | |
| "ScorebugSelectionSession", | |
| "TimeoutSelectionSession", | |
| # Public API | |
| "extract_sample_frames_for_selection", | |
| "get_video_path_from_user", | |
| "print_banner", | |
| "select_flag_region", | |
| "select_playclock_region", | |
| "select_scorebug_region", | |
| "select_timeout_region", | |
| ] | |