(self, root, config_path=None)
| 24 | |
| 25 | class PointSelectorGUI: |
| 26 | def __init__(self, root, config_path=None): |
| 27 | self.root = root |
| 28 | self.root.title("Point Selector - Multi-Frame Support") |
| 29 | |
| 30 | # Data |
| 31 | self.config_path = config_path |
| 32 | self.config_data = None |
| 33 | self.current_video_idx = 0 |
| 34 | self.current_frame_idx = 0 |
| 35 | self.video_captures = [] |
| 36 | self.total_frames_list = [] |
| 37 | |
| 38 | # NEW: Points organized by frame |
| 39 | self.points_by_frame = {} # {frame_idx: [(x, y), ...]} |
| 40 | self.all_points_by_frame = [] # List of dicts for all videos |
| 41 | |
| 42 | # Display |
| 43 | self.display_scale = 1.0 |
| 44 | self.photo = None |
| 45 | self.point_radius = 8 |
| 46 | |
| 47 | self.setup_ui() |
| 48 | |
| 49 | if config_path: |
| 50 | self.load_config_direct(config_path) |
| 51 | |
| 52 | def setup_ui(self): |
| 53 | """Setup the GUI layout""" |
nothing calls this directly
no test coverage detected