-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconstant.py
152 lines (148 loc) · 3.64 KB
/
constant.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
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
PATH = 'C:/Users/ROHIT KUMAR/code/ml/plant-disease-model1.pth'
class_list = ['Apple___Apple_scab',
'Apple___Black_rot',
'Apple___Cedar_apple_rust',
'Apple___healthy',
'Blueberry___healthy',
'Cherry_(including_sour)___Powdery_mildew',
'Cherry_(including_sour)___healthy',
'Corn_(maize)___Cercospora_leaf_spot Gray_leaf_spot',
'Corn_(maize)___Common_rust_',
'Corn_(maize)___Northern_Leaf_Blight',
'Corn_(maize)___healthy',
'Grape___Black_rot',
'Grape___Esca_(Black_Measles)',
'Grape___Leaf_blight_(Isariopsis_Leaf_Spot)',
'Grape___healthy',
'Orange___Haunglongbing_(Citrus_greening)',
'Peach___Bacterial_spot',
'Peach___healthy',
'Pepper,_bell___Bacterial_spot',
'Pepper,_bell___healthy',
'Potato___Early_blight',
'Potato___Late_blight',
'Potato___healthy',
'Raspberry___healthy',
'Soybean___healthy',
'Squash___Powdery_mildew',
'Strawberry___Leaf_scorch',
'Strawberry___healthy',
'Tomato___Bacterial_spot',
'Tomato___Early_blight',
'Tomato___Late_blight',
'Tomato___Leaf_Mold',
'Tomato___Septoria_leaf_spot',
'Tomato___Spider_mites Two-spotted_spider_mite',
'Tomato___Target_Spot',
'Tomato___Tomato_Yellow_Leaf_Curl_Virus',
'Tomato___Tomato_mosaic_virus',
'Tomato___healthy']
plant_detail = [
dict(
name="Apple",
disease=[
"Apple_scab",
"Black_rot",
"Cedar_apple_rust"
],
urls=[
"https://nationaltoday.com/wp-content/uploads/2021/10/Apple-Tree-Day.jpg"
]
),
dict(
name="Blueberry",
disease=[]
),
dict(
name="Cherry",
disease=[
"Powdery mildew"
]
),
dict(
name="Corn",
disease=[
"Cercospora leaf spot Gray leaf spot",
"Common Rust",
"Northern Leaf Blight"
]
),
dict(
name="Grape",
disease=[
"Black Rot",
"Esca (Black Measles)",
"Leaf Blight (Isariopsis Leaf Spot)"
]
),
dict(
name="Orange",
disease=[
"Haunglongbing (Citrus greening)"
]
),
dict(
name="Peach",
disease=[
"Bacterial spot",
]
),
dict(
name="Potato",
disease=[
"Early Blight",
"Late Blight"
]
),
dict(
name="Raspberry",
disease=[]
),
dict(
name="Soybean",
disease=[]
),
dict(
name="Squash",
disease=[
"Powdery Mildew"
]
),
dict(
name="Strawberry",
disease=[
"Leaf Scorch"
]
),
dict(
name="Tomato",
disease=[
"Bacterial Spot",
"Early blight",
"Late Blight",
"Leaf Mold",
"Leaf Blight",
"Septoria Leaf Spot",
"Spider Mites Two spotted",
"Target Spot",
"Yellow Leaf Curl Virus",
"Mosaic Virus"
]
)
]
plant_list = [
"Apple",
"Blueberry",
"Cherry",
"Corn",
"Grape",
"Orange",
"Peach",
"Pepper,",
"Potato",
"Raspberry",
"Soybean",
"Squash",
"Strawberry",
"Tomato"
]