-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdict.py
88 lines (87 loc) · 2.57 KB
/
dict.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
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
import numpy as np
item_dict = {
0:"bg",
1:"Real Apple",
2:"Real Banana",
3:"Real Biscuit",
4:"Real Bread",
5:"Real Carrot",
6:"Real Cucumber",
7:"Real Donut",
8:"Real Egg",
9:"Real Eggplant",
10:"Real Garlic",
11:"Real Grapes",
12:"Real Lemon",
13:"Real Orange",
14:"Real Pastry",
15:"Real Pear",
16:"Real Pepper",
17:"Real Potato",
18:"Real Pumpkin",
19:"Real Salad",
20:"Real Tomato",
21:"Fake Apple",
22:"Fake Banana",
23:"Fake Biscuit",
24:"Fake Bread",
25:"Fake Carrot",
26:"Fake Cucumber",
27:"Fake Donut",
28:"Fake Egg",
29:"Fake Eggplant",
30:"Fake Garlic",
31:"Fake Grapes",
32:"Fake Lemon",
33:"Fake Orange",
34:"Fake Pastry",
35:"Fake Pear",
36:"Fake Pepper",
37:"Fake Potato",
38:"Fake Pumpkin",
39:"Fake Salad",
40:"Fake Tomato",
41:"Unknown"
}
colors = np.array([[0,0,0],
[229,255,204],
[255,255,0],
[255,204,153],
[102,51,0],
[255,153,153],
[0,102,0],
[255,153,204],
[255,255,255],
[51,0,102],
[255,255,204],
[51,51,255],
[255,255,153],
[255,128,0],
[153,153,0],
[204,204,0],
[153,0,0],
[153,76,0],
[255,178,102],
[0,153,0],
[204,0,0],
[26,0,51],
[0,0,255],
[0,51,102],
[153,204,255],
[0,102,102],
[255,153,255],
[0,102,51],
[207,207,207],
[204,255,153],
[0,0,51],
[204,204,255],
[0,0,102],
[0,127,255],
[102,102,255],
[208,0,180],
[102,255,255],
[102,180,255],
[0,77,153],
[255,102,255],
[51,255,255],
[255,255,255]])