-
Notifications
You must be signed in to change notification settings - Fork 0
/
Images.py
51 lines (33 loc) · 1.39 KB
/
Images.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
44
45
46
47
48
49
50
51
from PIL import ImageTk, Image
url_route = 'Resources/'
url_prefix = url_route + 'Step_'
color_images = []
for n in range(8):
image_url = url_prefix + str(n) + '_50.jpg'
color_images.append(ImageTk.PhotoImage(Image.open(image_url)))
alpha_images = []
for n in range(8):
image_url = url_prefix + str(n) + '_50_alpha.png'
alpha_images.append(ImageTk.PhotoImage(Image.open(image_url)))
validation_names = ['yes', 'no', 'aux']
progress_images = {}
for validation_name in validation_names:
image_url = url_prefix + validation_name + '_60.png'
progress_images[validation_name] = ImageTk.PhotoImage(Image.open(image_url))
assembly_images = []
for n in range(8):
image_url = url_prefix + str(n) + '.jpg'
assembly_images.append(ImageTk.PhotoImage(Image.open(image_url)))
validation_images = {}
for validation_name in validation_names:
image_url = url_prefix + validation_name + '.png'
validation_images[validation_name] = ImageTk.PhotoImage(Image.open(image_url))
assembly_name = 'AssemblyCompleted'
completed_image = url_route + assembly_name + '.png'
completed_mask = url_route + assembly_name + '_mask.png'
gloves_name = 'SecurityGloves'
gloves_image = url_route + gloves_name + '.png'
gloves_mask = url_route + gloves_name + '_mask.png'
caution_name = 'CautionDanger'
caution_image = url_route + caution_name + '.png'
caution_mask = url_route + caution_name + '_mask.png'