MCPcopy Create free account
hub / github.com/Netflix/void-model / __init__

Method __init__

VLM-MASK-REASONER/point_selector_gui.py:26–50  ·  view source on GitHub ↗
(self, root, config_path=None)

Source from the content-addressed store, hash-verified

24
25class 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"""

Callers

nothing calls this directly

Calls 2

setup_uiMethod · 0.95
load_config_directMethod · 0.95

Tested by

no test coverage detected