-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdemo.py
More file actions
767 lines (643 loc) · 25.8 KB
/
Copy pathdemo.py
File metadata and controls
767 lines (643 loc) · 25.8 KB
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
"""
GUI Application για Human Detection & Tracking - Improved Version
Με REC button για camera recording
"""
import tkinter as tk
from tkinter import filedialog, messagebox
import cv2
from pathlib import Path
import threading
import time
from datetime import datetime
import os
import sys
from src.detection.detect import HumanDetector
from src.tracking.tracker import HumanTracker
from src.utils.helpers import draw_tracks, resize_frame, create_output_path
def get_app_data_dir():
"""
Επιστροφή directory για app data (models, outputs, data)
Αν δεν μπορεί να γράψει στο current directory, χρησιμοποιεί AppData
"""
# Προσπάθεια να χρησιμοποιήσουμε το current directory (για development)
try:
test_dir = Path(".")
test_file = test_dir / ".write_test"
try:
test_file.touch()
test_file.unlink()
# Μπορούμε να γράψουμε, χρησιμοποιούμε current directory
return Path(".").absolute()
except (PermissionError, OSError):
pass
except Exception:
pass
# Αν δεν μπορούμε, χρησιμοποιούμε AppData
if sys.platform == "win32":
appdata = Path(os.getenv("APPDATA", Path.home() / "AppData" / "Roaming"))
elif sys.platform == "darwin":
appdata = Path.home() / "Library" / "Application Support"
else:
appdata = Path.home() / ".local" / "share"
app_dir = appdata / "Human_Detection_System"
app_dir.mkdir(parents=True, exist_ok=True)
return app_dir
def get_models_dir():
"""Επιστροφή path για models directory"""
base_dir = get_app_data_dir()
models_dir = base_dir / "models"
try:
models_dir.mkdir(parents=True, exist_ok=True)
except (PermissionError, OSError):
# Fallback σε AppData αν αποτύχει
appdata = Path(os.getenv("APPDATA", Path.home() / "AppData" / "Roaming"))
models_dir = appdata / "Human_Detection_System" / "models"
models_dir.mkdir(parents=True, exist_ok=True)
return models_dir
def get_outputs_dir():
"""Επιστροφή path για outputs directory"""
base_dir = get_app_data_dir()
outputs_dir = base_dir / "outputs"
try:
outputs_dir.mkdir(parents=True, exist_ok=True)
except (PermissionError, OSError):
# Fallback σε AppData αν αποτύχει
appdata = Path(os.getenv("APPDATA", Path.home() / "AppData" / "Roaming"))
outputs_dir = appdata / "Human_Detection_System" / "outputs"
outputs_dir.mkdir(parents=True, exist_ok=True)
return outputs_dir
def get_data_dir():
"""Επιστροφή path για data directory"""
base_dir = get_app_data_dir()
data_dir = base_dir / "data"
try:
data_dir.mkdir(parents=True, exist_ok=True)
except (PermissionError, OSError):
# Fallback σε AppData αν αποτύχει
appdata = Path(os.getenv("APPDATA", Path.home() / "AppData" / "Roaming"))
data_dir = appdata / "Human_Detection_System" / "data"
data_dir.mkdir(parents=True, exist_ok=True)
return data_dir
class HumanDetectionApp:
"""Κύρια εφαρμογή με GUI"""
def __init__(self, root):
self.root = root
self.root.title("Human Detection & Tracking System")
self.root.geometry("550x550")
self.root.resizable(False, False)
# State
self.is_running = False
self.is_recording = False
self.video_writer = None
self.detector = None
self.tracker = None
self.device_preference = tk.StringVar(value="auto") # auto, cpu, cuda
self._setup_ui()
def _setup_ui(self):
"""Δημιουργία UI elements"""
# Title
title_label = tk.Label(
self.root,
text="🎥 Human Detection & Tracking",
font=("Arial", 20, "bold"),
fg="#2c3e50"
)
title_label.pack(pady=30)
# Subtitle
subtitle = tk.Label(
self.root,
text="Powered by YOLOv12 | Real-time Tracking with Re-ID",
font=("Arial", 10),
fg="#7f8c8d"
)
subtitle.pack()
# Device selection frame
device_frame = tk.Frame(self.root)
device_frame.pack(pady=20)
device_label = tk.Label(
device_frame,
text="Device:",
font=("Arial", 11, "bold"),
fg="#2c3e50"
)
device_label.pack(side=tk.LEFT, padx=5)
# Device options
device_options = [("Auto-detect", "auto"), ("CPU", "cpu"), ("GPU (CUDA)", "cuda")]
for text, value in device_options:
rb = tk.Radiobutton(
device_frame,
text=text,
variable=self.device_preference,
value=value,
font=("Arial", 10),
fg="#34495e",
activebackground="#ecf0f1",
command=self._update_device_info
)
rb.pack(side=tk.LEFT, padx=5)
# Device info label
self.device_info_label = tk.Label(
self.root,
text="",
font=("Arial", 9),
fg="#95a5a6"
)
self.device_info_label.pack(pady=5)
self._update_device_info()
# Frame για buttons
button_frame = tk.Frame(self.root)
button_frame.pack(pady=30)
# Camera button
camera_btn = tk.Button(
button_frame,
text="📹 Real-time Camera",
font=("Arial", 14),
bg="#3498db",
fg="white",
width=20,
height=2,
command=self._start_camera,
cursor="hand2"
)
camera_btn.pack(pady=10)
# Upload video button
upload_btn = tk.Button(
button_frame,
text="📁 Upload Video",
font=("Arial", 14),
bg="#2ecc71",
fg="white",
width=20,
height=2,
command=self._upload_video,
cursor="hand2"
)
upload_btn.pack(pady=10)
# Open Records button
records_btn = tk.Button(
button_frame,
text="📂 Open Records",
font=("Arial", 14),
bg="#9b59b6",
fg="white",
width=20,
height=2,
command=self._open_outputs_folder,
cursor="hand2"
)
records_btn.pack(pady=10)
# Status label
self.status_label = tk.Label(
self.root,
text="Έτοιμο",
font=("Arial", 10),
fg="#95a5a6"
)
self.status_label.pack(side=tk.BOTTOM, pady=20)
# Info
info_label = tk.Label(
self.root,
text="Camera Mode: Πάτα 'R' για REC, 'S' για Stop REC, ESC για έξοδο",
font=("Arial", 9),
fg="#95a5a6"
)
info_label.pack(side=tk.BOTTOM, pady=5)
def _update_device_info(self):
"""Ενημέρωση device info label"""
try:
from src.detection.detect import get_available_device
device = get_available_device(self.device_preference.get())
if device == 'cuda':
try:
import torch
if torch.cuda.is_available():
gpu_name = torch.cuda.get_device_name(0)
self.device_info_label.config(
text=f"✓ GPU Available: {gpu_name}",
fg="#27ae60"
)
else:
self.device_info_label.config(
text="⚠ GPU requested but not available",
fg="#e74c3c"
)
except:
self.device_info_label.config(
text="⚠ GPU requested but PyTorch not available",
fg="#e74c3c"
)
elif device == 'mps':
self.device_info_label.config(
text="✓ Apple Silicon (MPS) Available",
fg="#27ae60"
)
else:
self.device_info_label.config(
text="ℹ Using CPU",
fg="#95a5a6"
)
except Exception as e:
self.device_info_label.config(
text="⚠ Could not detect device",
fg="#e74c3c"
)
def _open_outputs_folder(self):
"""Άνοιγμα του φακέλου outputs"""
import subprocess
import platform
import os
output_dir = get_outputs_dir()
output_path = output_dir.absolute()
try:
if platform.system() == "Windows":
# Windows: χρήση explorer
os.startfile(str(output_path))
elif platform.system() == "Darwin": # macOS
subprocess.Popen(["open", str(output_path)])
else: # Linux
subprocess.Popen(["xdg-open", str(output_path)])
self.status_label.config(text=f"Άνοιξε φάκελος: {output_path}")
except Exception as e:
messagebox.showerror(
"Σφάλμα",
f"Δεν μπόρεσε να ανοίξει ο φάκελος:\n{str(e)}\n\n"
f"Path: {output_path}"
)
self.status_label.config(text="Σφάλμα ανοίγματος φακέλου")
def _initialize_models(self):
"""Αρχικοποίηση detector και tracker"""
# Αν υπάρχει ήδη detector με διαφορετικό device, reset
device_pref = self.device_preference.get()
if self.detector is not None:
# Check if device changed
current_device = self.detector.device
new_device = device_pref if device_pref != "auto" else None
if new_device is None:
# Auto mode - check what would be selected
from src.detection.detect import get_available_device
new_device = get_available_device(None)
if current_device != new_device:
self.detector = None
if self.detector is None:
self.status_label.config(text="Φόρτωση μοντέλου...")
self.root.update()
try:
# Device selection
device = None if device_pref == "auto" else device_pref
# Χρήση models directory με fallback
models_dir = get_models_dir()
model_path = models_dir / "yolo12n.pt"
# Αν το model δεν υπάρχει στο models_dir, δοκίμασε στο _internal/models (για .exe)
if not model_path.exists():
# Check αν τρέχουμε από .exe (PyInstaller sets sys.frozen)
if getattr(sys, 'frozen', False):
# Τρέχουμε από .exe - το sys.executable είναι το .exe path
exe_dir = Path(sys.executable).parent
internal_models = exe_dir / "_internal" / "models" / "yolo12n.pt"
if internal_models.exists():
model_path = internal_models
else:
# Τρέχουμε από Python script - δοκίμασε στο current directory
local_models = Path("models") / "yolo12n.pt"
if local_models.exists():
model_path = local_models
# Χαμηλότερο confidence για καλύτερο detection
self.detector = HumanDetector(
model_path=str(model_path),
confidence=0.3, # Μειωμένο από 0.5
device=device
)
self.tracker = HumanTracker(
max_time_lost=90, # 3 seconds @ 30fps
reid_threshold=0.75, # Πιο strict για ακριβέστερο re-ID
iou_threshold=0.3
)
device_status = f"Μοντέλο φορτώθηκε! ({self.detector.device_name})"
self.status_label.config(text=device_status)
except Exception as e:
messagebox.showerror(
"Σφάλμα",
f"Σφάλμα φόρτωσης μοντέλου:\n{str(e)}\n\n"
"Το YOLOv12 θα κατέβει αυτόματα στην πρώτη εκτέλεση."
)
self.status_label.config(text="Σφάλμα φόρτωσης")
return False
return True
def _start_camera(self):
"""Έναρξη real-time camera detection"""
if not self._initialize_models():
return
self.is_running = True
self.is_recording = False
# Κλείσιμο του main window
self.root.withdraw()
# Εκτέλεση σε νέο thread
thread = threading.Thread(target=self._process_camera, daemon=True)
thread.start()
def _upload_video(self):
"""Upload και επεξεργασία video"""
if not self._initialize_models():
return
# Διάλογος επιλογής αρχείου
file_path = filedialog.askopenfilename(
title="Επιλογή Video",
filetypes=[
("Video files", "*.mp4 *.avi *.mov *.mkv"),
("All files", "*.*")
],
initialdir="data"
)
if not file_path:
return
self.is_running = True
# Κλείσιμο του main window
self.root.withdraw()
# Εκτέλεση σε νέο thread
thread = threading.Thread(
target=self._process_video,
args=(file_path,),
daemon=True
)
thread.start()
def _start_recording(self, frame_shape, fps):
"""Έναρξη recording"""
if self.is_recording:
return
# Δημιουργία output path
timestamp = datetime.now().strftime("%Y%m%d_%H%M%S")
output_dir = get_outputs_dir()
output_path = output_dir / f"camera_recording_{timestamp}.mp4"
# Video writer
fourcc = cv2.VideoWriter_fourcc(*'mp4v')
height, width = frame_shape[:2]
self.video_writer = cv2.VideoWriter(
str(output_path),
fourcc,
fps,
(width, height)
)
self.is_recording = True
self.recording_path = str(output_path)
print(f"\n🔴 RECORDING STARTED: {output_path}")
def _stop_recording(self):
"""Διακοπή recording"""
if not self.is_recording:
return
self.is_recording = False
if self.video_writer is not None:
self.video_writer.release()
self.video_writer = None
print(f"\n⏹️ RECORDING STOPPED")
# Εμφάνιση dialog με το path
def show_save_dialog():
result = messagebox.askyesno(
"Recording Αποθηκεύτηκε",
f"Το video αποθηκεύτηκε στο:\n{self.recording_path}\n\n"
"Θέλεις να ανοίξεις τον φάκελο outputs;"
)
if result:
import subprocess
import platform
output_dir = get_outputs_dir().absolute()
if platform.system() == "Windows":
subprocess.Popen(f'explorer "{output_dir}"')
elif platform.system() == "Darwin": # macOS
subprocess.Popen(["open", str(output_dir)])
else: # Linux
subprocess.Popen(["xdg-open", str(output_dir)])
# Run dialog in main thread
self.root.after(0, show_save_dialog)
def _process_camera(self):
"""Επεξεργασία real-time camera feed με REC capability"""
cap = cv2.VideoCapture(0)
if not cap.isOpened():
messagebox.showerror(
"Σφάλμα",
"Δεν μπόρεσε να ανοίξει η κάμερα!"
)
self.root.deiconify()
return
# Camera properties
fps = int(cap.get(cv2.CAP_PROP_FPS))
if fps == 0:
fps = 30 # Default
# Reset tracker
self.tracker.reset()
frame_count = 0
start_time = time.time()
cv2.namedWindow("Human Detection - Camera", cv2.WINDOW_NORMAL)
print("\n🎥 Έναρξη real-time detection...")
print("Controls:")
print(" R - Start/Resume Recording")
print(" S - Stop Recording")
print(" ESC - Exit\n")
while self.is_running:
ret, frame = cap.read()
if not ret:
break
frame_count += 1
# Detection με improved parameters
detections = self.detector.detect(frame)
# Tracking με appearance features
tracks = self.tracker.update(detections, frame, frame_count, self.detector)
stats = self.tracker.get_stats()
# Visualization
output_frame = draw_tracks(frame, tracks, stats)
# FPS calculation
elapsed = time.time() - start_time
current_fps = frame_count / elapsed if elapsed > 0 else 0
# FPS indicator
cv2.putText(
output_frame,
f"FPS: {current_fps:.1f}",
(output_frame.shape[1] - 150, 35),
cv2.FONT_HERSHEY_SIMPLEX,
0.7,
(0, 255, 0),
2
)
# Device indicator
device_text = self.detector.device_name if self.detector else "N/A"
cv2.putText(
output_frame,
f"Device: {device_text}",
(output_frame.shape[1] - 200, 65),
cv2.FONT_HERSHEY_SIMPLEX,
0.5,
(255, 255, 255),
1
)
# REC indicator
if self.is_recording:
# Flashing REC indicator
if frame_count % 20 < 10:
cv2.circle(output_frame, (30, 30), 15, (0, 0, 255), -1)
cv2.putText(
output_frame,
"REC",
(55, 40),
cv2.FONT_HERSHEY_SIMPLEX,
0.8,
(0, 0, 255),
2
)
# Write frame
if self.video_writer is not None:
self.video_writer.write(output_frame)
# Display
display_frame = resize_frame(output_frame, max_width=1280)
cv2.imshow("Human Detection - Camera", display_frame)
# Key handling
key = cv2.waitKey(1) & 0xFF
if key == 27: # ESC - Exit
if self.is_recording:
self._stop_recording()
break
elif key == ord('r') or key == ord('R'): # R - Start recording
if not self.is_recording:
self._start_recording(output_frame.shape, fps)
elif key == ord('s') or key == ord('S'): # S - Stop recording
if self.is_recording:
self._stop_recording()
# Cleanup
if self.is_recording:
self._stop_recording()
cap.release()
cv2.destroyAllWindows()
# Επιστροφή στο main window
self.root.deiconify()
self.status_label.config(text="Έτοιμο")
# Εμφάνιση τελικών στατιστικών
messagebox.showinfo(
"Στατιστικά Session",
f"📊 Session Ολοκληρώθηκε\n\n"
f"Frames: {frame_count}\n"
f"Συνολικοί άνθρωποι: {stats['total_people']}\n"
f"Μέσο FPS: {current_fps:.1f}\n"
f"Διάρκεια: {elapsed:.1f}s"
)
def _process_video(self, video_path):
"""Επεξεργασία uploaded video"""
cap = cv2.VideoCapture(video_path)
if not cap.isOpened():
messagebox.showerror(
"Σφάλμα",
f"Δεν μπόρεσε να ανοίξει το video:\n{video_path}"
)
self.root.deiconify()
return
# Video properties
fps = int(cap.get(cv2.CAP_PROP_FPS))
width = int(cap.get(cv2.CAP_PROP_FRAME_WIDTH))
height = int(cap.get(cv2.CAP_PROP_FRAME_HEIGHT))
total_frames = int(cap.get(cv2.CAP_PROP_FRAME_COUNT))
# Output video path - χρησιμοποιούμε get_outputs_dir() αντί για hardcoded "outputs"
outputs_dir = get_outputs_dir()
timestamp = datetime.now().strftime("%Y%m%d_%H%M%S")
input_name = Path(video_path).stem
output_path = outputs_dir / f"{input_name}_tracked_{timestamp}.mp4"
# Video writer (με panel height)
fourcc = cv2.VideoWriter_fourcc(*'mp4v')
out = cv2.VideoWriter(output_path, fourcc, fps, (width, height + 100))
# Reset tracker
self.tracker.reset()
frame_count = 0
start_time = time.time()
cv2.namedWindow("Human Detection - Video", cv2.WINDOW_NORMAL)
print(f"\n🎬 Επεξεργασία video: {Path(video_path).name}")
print(f"Frames: {total_frames} | FPS: {fps}")
print("Πάτα ESC για ακύρωση\n")
while self.is_running:
ret, frame = cap.read()
if not ret:
break
frame_count += 1
# Detection με improved parameters
detections = self.detector.detect(frame)
# Tracking με appearance features
tracks = self.tracker.update(detections, frame, frame_count, self.detector)
stats = self.tracker.get_stats()
# Visualization
output_frame = draw_tracks(frame, tracks, stats)
# Progress
progress = (frame_count / total_frames) * 100
cv2.putText(
output_frame,
f"Progress: {progress:.1f}%",
(output_frame.shape[1] - 220, 35),
cv2.FONT_HERSHEY_SIMPLEX,
0.7,
(255, 255, 0),
2
)
# Αποθήκευση frame
out.write(output_frame)
# Display (κάθε 2 frames για ταχύτητα)
if frame_count % 2 == 0:
display_frame = resize_frame(output_frame, max_width=1280)
cv2.imshow("Human Detection - Video", display_frame)
# ESC για ακύρωση
key = cv2.waitKey(1) & 0xFF
if key == 27: # ESC
print("\n❌ Ακυρώθηκε από τον χρήστη")
break
# Print progress
if frame_count % 30 == 0:
elapsed = time.time() - start_time
fps_processing = frame_count / elapsed if elapsed > 0 else 0
print(f"Frame {frame_count}/{total_frames} | "
f"{progress:.1f}% | FPS: {fps_processing:.1f} | "
f"People: {stats['current_people']}/{stats['total_people']}")
cap.release()
out.release()
cv2.destroyAllWindows()
# Επιστροφή στο main window
self.root.deiconify()
self.status_label.config(text="Έτοιμο")
# Στατιστικά
elapsed = time.time() - start_time
stats = self.tracker.get_stats()
if frame_count == total_frames:
messagebox.showinfo(
"Ολοκληρώθηκε!",
f"✅ Το video αποθηκεύτηκε:\n{output_path}\n\n"
f"📊 Στατιστικά:\n"
f"Frames: {frame_count}\n"
f"Συνολικοί άνθρωποι: {stats['total_people']}\n"
f"Χρόνος: {elapsed:.1f}s\n"
f"Μέσο FPS: {frame_count/elapsed:.1f}"
)
print(f"\n✅ Ολοκληρώθηκε!")
print(f"Output: {output_path}")
print(f"Συνολικοί άνθρωποι: {stats['total_people']}")
else:
print(f"\n⚠️ Διακόπηκε στο frame {frame_count}/{total_frames}")
def main():
"""Entry point"""
# Δημιουργία απαραίτητων directories (με fallback σε AppData αν χρειάζεται)
try:
get_models_dir()
get_outputs_dir()
get_data_dir()
except Exception as e:
print(f"⚠️ Warning: Could not create directories: {e}")
print(" The application will try to use AppData directory instead.")
print("=" * 60)
print("🎥 Human Detection & Tracking System")
print("=" * 60)
print("\n📋 Features:")
print(" ✅ YOLOv12 Detection (improved confidence)")
print(" ✅ Appearance-based Re-identification")
print(" ✅ Real-time Camera with Recording")
print(" ✅ Video Upload Processing")
print("\n🎮 Camera Controls:")
print(" R - Start Recording")
print(" S - Stop Recording")
print(" ESC - Exit")
print("\n" + "=" * 60 + "\n")
# Εκτέλεση GUI
root = tk.Tk()
app = HumanDetectionApp(root)
root.mainloop()
if __name__ == "__main__":
main()