File size: 1,322 Bytes
07392e1
 
4267e68
07392e1
fbeda03
07392e1
 
 
 
 
 
 
 
 
 
fbeda03
07392e1
 
 
 
 
 
 
 
 
4267e68
 
fbeda03
07392e1
 
 
4267e68
 
 
07392e1
 
 
 
 
 
4267e68
07392e1
fbeda03
07392e1
 
 
 
 
 
4267e68
 
fbeda03
07392e1
 
 
4267e68
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
"""
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",
]