-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
executable file
·43 lines (38 loc) · 1.02 KB
/
main.py
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
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
from __future__ import unicode_literals
from GUI import Gui
from Database import Database
from mytk import tk
from pathlib import Path
from imageSugestion import get_all_images
import sys
import argparse
import pickle
def parse_args():
parser = argparse.ArgumentParser(
description=__doc__)
parser.add_argument(
'dataset',
help='dataset',
)
parser.add_argument(
'-n',
'--no-preload',
help='skip preloading',
action='store_true'
)
return parser.parse_args()
if __name__ == '__main__':
args = parse_args()
path = args.dataset
seqs = get_all_images(path)
database = Database(seqs, path, preload_images=not args.no_preload)
root = tk.Tk()
root.resizable(True, True)
my_gui = Gui(root, database)
root.grid_columnconfigure(0, weight=1)
root.grid_rowconfigure(0, weight=1)
root.title("ANNOTATION GUI")
root.mainloop()